IXRFrameworkElement::SetHeight (Compact 2013)

3/28/2014

This method sets the height of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetHeight(
    __in float Height
) = 0;

Parameters

  • Height
    [in] A float value that indicates the new height of this framework element.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method sets the value of Height, which is a dependency property.

Height is one of the three writable properties on IXRFrameworkElement that specify height information. The other two are MinHeight and MaxHeight. You can retrieve these values by using IXRFrameworkElement::SetMinHeight and IXRFrameworkElement::SetMaxHeight. If there is a conflict between these values, the order of making the actual height determination is as follows: first, the value of MinHeight must be honored, then the value of MaxHeight must be honored, and finally, if it is within bounds, the value of Height must be honored.

.NET Framework Equivalent

System.Windows.FrameworkElement.Height

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetHeight