GridLength 构造函数 (Single, GridUnitType) |
Constructor, initializes the GridLength and specifies what kind of value
it will hold.
命名空间:
CPF.Controls
程序集:
CPF (在 CPF.dll 中) 版本:0.8.8.5
语法 public GridLength(
float value,
GridUnitType type
)
参数
- value
- 类型:SystemSingle
Value to be stored by this GridLength
instance. - type
- 类型:CPF.ControlsGridUnitType
Type of the value to be stored by this GridLength
instance.
异常 异常 | 条件 |
---|
ArgumentException |
If value parameter is float.NaN
or value parameter is float.NegativeInfinity
or value parameter is float.PositiveInfinity.
|
备注
If the type parameter is GridUnitType.Auto,
then passed in value is ignored and replaced with 0.
参见