RowDefinition.Height 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取元素的 RowDefinition 计算高度,或设置 GridLength 由该 RowDefinition元素定义的行的值。
public:
property System::Windows::GridLength Height { System::Windows::GridLength get(); void set(System::Windows::GridLength value); };
public System.Windows.GridLength Height { get; set; }
member this.Height : System.Windows.GridLength with get, set
Public Property Height As GridLength
属性值
表示 GridLength 行的高度。 默认值为 1.0。
注解
默认 GridUnitType 为 Star。
在同一代码示例中使用这些值时, MinHeight 该值优先于 MaxHeight 值,而该值又优先于 Height 值。
添加或删除行或列时, ActualWidth 所有 ColumnDefinition 元素的所有元素和 ActualHeight 所有 RowDefinition 元素变为零,直到 Measure 调用为止。
Dependency 属性信息
| 项目 | 价值 |
|---|---|
| 标识符字段 | HeightProperty |
元数据属性设置为 true |
None |