From 5107816310cb4aa5cdc07e3113708270c6dcf9cd Mon Sep 17 00:00:00 2001 From: David Hall Date: Mon, 16 Jan 2023 20:51:13 -0700 Subject: [PATCH] Added Point.x and y properties to match some C++ implementations --- PInvoke/Shared/WinDef/POINT.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PInvoke/Shared/WinDef/POINT.cs b/PInvoke/Shared/WinDef/POINT.cs index 1526f819..e5ac9176 100644 --- a/PInvoke/Shared/WinDef/POINT.cs +++ b/PInvoke/Shared/WinDef/POINT.cs @@ -55,8 +55,17 @@ namespace Vanara.PInvoke } } + /// Specifies the x-coordinate of the point. + [NonSerialized] + public int x { get => x; set => x = value; } + + /// Specifies the y-coordinate of the point. + [NonSerialized] + public int y { get => y; set => y = value; } + /// Gets a value indicating whether this is empty. /// if both X and Y are 0; otherwise, . + [NonSerialized] [Browsable(false)] public bool IsEmpty => X == 0 && Y == 0;