次の方法で共有


IXRRowDefinition::GetActualHeight (Compact 2013)

3/28/2014

This method retrieves the rendered height of this row definition.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetActualHeight(
    float *pActualHeight
) = 0;

Parameters

  • pActualHeight
    [out] Pointer to a float value that indicates the rendered height of this row definition, in pixels.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you use height values for a row, the MinHeight value takes precedence over the MaxHeight value, which in turn takes precedence over the Height value. You can set these values by calling IXRRowDefinition::SetMinHeight, IXRRowDefinition::SetMaxHeight, or 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.RowDefinition.ActualHeight

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRRowDefinition