共用方式為


Rectangle.Width 屬性

定義

取得或設定這個 Rectangle 結構的寬度。

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

屬性值

Rectangle 座建築的寬度。 預設值是 0。

備註

改變 Width 屬性也會改變 Right 的屬性 Rectangle。 長方形所繪製的單位由 PageUnit 用於繪圖的圖形物件及其 PageScale 屬性決定。 預設單位是像素。

適用於