ColumnStyle.Width 屬性

定義

取得或設定資料行的寬度值。

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

屬性值

Single

以像素為單位的慣用寬度或是百分比 (需視 SizeType 屬性而定)。

例外狀況

當設定這個屬性時,這個值小於 0。

備註

根據 屬性,參數 width 會採用不同的意義 SizeType

sizeType width 解釋
Absolute 以圖元為單位的慣用資料行寬度, (略過小數部分) 。
AutoSize 不適用 - 會忽略 width 參數。
Percent 慣用的資料行寬度,以包含資料表的百分比表示。

適用於

另請參閱