Share via


CGRect.X Property

Definition

Gets or sets the x-coordinate of the upper-left corner of this CGRect structure.

public System.Runtime.InteropServices.NFloat X { get; set; }
member this.X : System.Runtime.InteropServices.NFloat with get, set

Property Value

Remarks

<attribution license="cc4" from="Microsoft" modified="false"></attribution>

Changing the X property will also cause a change in the Right property of the CGRect.

Applies to