Point.X Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the X-coordinate value of this Point structure.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

member X : float with get, set

Property Value

Type: System.Double

The X-coordinate value of this Point structure. The default value is 0.

The following example shows how to check if two Point structures are not equal. It also illustrates how to assign values to a Point structure when the structure is being declared and after the structure has been declared.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: