DataGridLengthUnitType 枚举 |
定义一些常量,这些常量指定如何调整 DataGrid 中元素的大小。
命名空间:
CPF.Controls
程序集:
CPF (在 CPF.dll 中) 版本:0.8.8.5
语法 public enum DataGridLengthUnitType
成员
| 成员名称 | 值 | 说明 |
---|
| Default | 0 |
元素大小为以像素表示的固定值。
The value is expressed in pixels.
|
| Auto | 1 |
元素大小基于单元格的内容和列标题。
The value indicates that content should be calculated based on the
unconstrained sizes of all cells and header in a column.
|
| SizeToCells | 2 |
元素大小基于单元格的内容。
The value indicates that content should be be calculated based on the
unconstrained sizes of all cells in a column.
|
| SizeToHeader | 3 |
元素大小基于列标题的内容。
The value indicates that content should be calculated based on the
unconstrained size of the column header.
|
| Star | 4 |
元素大小为可用空间的加权比例。
The value is expressed as a weighted proportion of available space.
|
参见