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 列大小,不包括列标题。 如果大于当前列大小的内容滚动到视图中,则此大小调整模式将导致列展开。 在内容滚动出视图后,该列不会收缩。

适用于