POINT.cs 872 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// POINT定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// POINT
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential)]
  13. public struct POINT
  14. {
  15. /// <summary>
  16. /// 水平坐标
  17. /// </summary>
  18. public int x;
  19. /// <summary>
  20. /// 垂直坐标
  21. /// </summary>
  22. public int y;
  23. /// <summary>
  24. /// 构造函数
  25. /// </summary>
  26. /// <param name="x">水平坐标</param>
  27. /// <param name="y">垂直坐标</param>
  28. public POINT(int x, int y)
  29. {
  30. this.x = x;
  31. this.y = y;
  32. }
  33. }
  34. }
  35. }