DataGrid.ColumnWidth 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定欄位與標頭的標準寬度與大小模式。DataGrid
public:
property System::Windows::Controls::DataGridLength ColumnWidth { System::Windows::Controls::DataGridLength get(); void set(System::Windows::Controls::DataGridLength value); };
public System.Windows.Controls.DataGridLength ColumnWidth { get; set; }
member this.ColumnWidth : System.Windows.Controls.DataGridLength with get, set
Public Property ColumnWidth As DataGridLength
屬性值
欄位與標題的寬度與尺寸模式,以裝置無關單位(每單位 1/96 英吋)。 註冊預設為 SizeToHeader。 關於影響價值的因素,請參見 DependencyProperty。
備註
個體DataGridColumn所設定的Width屬性優先於該ColumnWidth屬性。
DisplayValue若該性質依優先順序被設定,則 的 ColumnWidth 受以下性質約束: