Share via


DataGridLength.SizeToCells 屬性

定義

取得表示儲存格架構自動調整大小模式的 DataGridLength 結構。

public:
 static property System::Windows::Controls::DataGridLength SizeToCells { System::Windows::Controls::DataGridLength get(); };
public static System.Windows.Controls.DataGridLength SizeToCells { get; }
member this.SizeToCells : System.Windows.Controls.DataGridLength
Public Shared ReadOnly Property SizeToCells As DataGridLength

屬性值

DataGridLength

表示儲存格架構自動調整大小模式的 DataGridLength 結構。

備註

資料格型自動調整大小模式會根據資料行中的資料格內容來調整 DataGrid 資料行的大小,不包括資料行標頭。 如果大於目前資料行大小的內容捲動到檢視中,這個調整大小模式會導致資料行展開。 在內容捲動出檢視之後,資料行將不會壓縮。

適用於