共用方式為


Rectangle.X 屬性

定義

取得或設定此 Rectangle 結構左上角的 x 座標。

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

屬性值

此結構左上角 Rectangle 的 x 座標。 預設值是 0。

備註

改變 X 屬性也會改變 Right 的屬性 Rectangle

適用於