using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// GRADIENT_RECT定义 /// public static partial class NativeMethods { /// /// The GRADIENT_RECT structure specifies the index of two vertices in the pVertex array in the GradientFill function. These two vertices form the upper-left and lower-right boundaries of a rectangle. /// [StructLayout(LayoutKind.Sequential)] public struct GRADIENT_RECT { /// /// The upper-left corner of a rectangle. /// public uint UpperLeft; /// /// The lower-right corner of a rectangle. /// public uint LowerRight; /// /// 构造函数 /// /// 左上角 /// 右上角 public GRADIENT_RECT(uint upperLeft, uint lowerRight) { this.UpperLeft = upperLeft; this.LowerRight = lowerRight; } } } }