Share via


IXRFrameworkElement::GetActualHeight (Compact 2013)

3/28/2014

This method retrieves the displayed height of this framework element.

Syntax

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

Parameters

  • pActualHeight
    [out] Pointer to a float value that indicates the displayed height of this framework element, in pixels.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value of pActualHeight is a calculated value based on other height inputs, and the layout system. The value is set by the layout system itself, based on an actual rendering pass, and might therefore lag slightly behind the set value of dependency properties, such as Height, that are the basis of the input change.

Because the value of pActualHeight is a calculated value, you should be aware that there could be multiple or incremental reported changes to it as a result of several different operations by the layout system. The layout system might be calculating required measure space for child elements, constraints by the parent element, and so on.

.NET Framework Equivalent

System.Windows.FrameworkElement.ActualHeight

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement