共用方式為


DataGridColumn.Width 屬性

定義

可以設定欄位寬度或自動尺寸模式。

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若設定為先例,則受以下性質限制:

適用於

另請參閱