12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Runtime.InteropServices;
- namespace Microsoft.Win32
- {
- /// <summary>
- /// GRADIENT_RECT定义
- /// </summary>
- public static partial class NativeMethods
- {
- /// <summary>
- /// 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.
- /// </summary>
- [StructLayout(LayoutKind.Sequential)]
- public struct GRADIENT_RECT
- {
- /// <summary>
- /// The upper-left corner of a rectangle.
- /// </summary>
- public uint UpperLeft;
- /// <summary>
- /// The lower-right corner of a rectangle.
- /// </summary>
- public uint LowerRight;
- /// <summary>
- /// 构造函数
- /// </summary>
- /// <param name="upperLeft">左上角</param>
- /// <param name="lowerRight">右上角</param>
- public GRADIENT_RECT(uint upperLeft, uint lowerRight)
- {
- this.UpperLeft = upperLeft;
- this.LowerRight = lowerRight;
- }
- }
- }
- }
|