Edit

Share via


Rect.X Property

Definition

Gets or sets the x-axis value of the left side of the rectangle.

public:
 property double X { double get(); void set(double value); };
public double X { get; set; }
member this.X : double with get, set
Public Property X As Double

Property Value

The x-axis value of the left side of the rectangle. This value is interpreted as pixels within the coordinate space.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information and examples of this member, see Rect.X in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Applies to