共用方式為


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

屬性值

偏好寬度,以像素或百分比計,視物業而 SizeType 定。

例外狀況

設定此屬性時,值小於 0。

備註

width參數會根據性質SizeType有不同的意義。

sizeType width 詮釋
Absolute 偏好的欄寬度(像素單位)不考慮分數部分。
AutoSize 不適用——寬度參數被忽略。
Percent 以包含表格的百分比計算的首選欄寬。

適用於

另請參閱