IXRRowDefinition::GetHeight (Compact 2013)
3/28/2014
This method retrieves the calculated height of this row definition.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetHeight(
XRGridLength *pHeight
) = 0;
Parameters
- pHeight
[out] Pointer to an XRGridLength structure that describes the length of this row.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
Objects such as IXRColumnDefinition and IXRRowDefinition use pHeight to describe width and height in order to support variable distribution of available space.
When you use multiple height settings in a row definition, the MinHeight value takes precedence over the MaxHeight value, which in turn takes precedence over the Height value. You can set these values by using IXRRowDefinition::SetMinHeight, IXRRowDefinition::SetMaxHeight, and IXRRowDefinition::SetHeight.
When you add or remove rows or columns for a grid object, the ActualHeight value for all IXRRowDefinition child objects on that grid, and also the ActualWidth of all IXRColumnDefinition child objects on that grid, becomes zero until the IXRGrid inherited method IXRUIElement::Measure is called to update the desired size of the object.
.NET Framework Equivalent
System.Windows.Controls.RowDefinition
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |