DataGridColumn.Width 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可以設定欄位寬度或自動尺寸模式。
public:
property System::Windows::Controls::DataGridLength Width { System::Windows::Controls::DataGridLength get(); void set(System::Windows::Controls::DataGridLength value); };
public System.Windows.Controls.DataGridLength Width { get; set; }
member this.Width : System.Windows.Controls.DataGridLength with get, set
Public Property Width As DataGridLength
屬性值
一個代表欄寬或自動尺寸調整模式的結構。 註冊預設為 Auto。關於影響該值的因素,請參見 DependencyProperty。
備註
Width當屬性設定在個人 DataGridColumn上時,優先於該屬性。DataGrid.ColumnWidth
DisplayValue Width若設定為先例,則受以下性質限制: