DataGridLength.SizeToCells 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得表示儲存格架構自動調整大小模式的 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 結構。
備註
資料格型自動調整大小模式會根據資料行中的資料格內容來調整 DataGrid 資料行的大小,不包括資料行標頭。 如果大於目前資料行大小的內容捲動到檢視中,這個調整大小模式會導致資料行展開。 在內容捲動出檢視之後,資料行將不會壓縮。