ColumnStyle.Width 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定欄位的寬度值。
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 | 以包含表格的百分比計算的首選欄寬。 |