次の方法で共有


IXRFrameworkElement::GetVerticalAlignment (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the characteristics that determine the vertical alignment of this framework element when it is rendered within a parent element, such as a panel or items control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetVerticalAlignment(
    XRVerticalAlignment* pVerticalAlignment
) = 0;

Parameters

  • pVerticalAlignment
    [out] Pointer to an XRVerticalAlignment enumerated type that indicates the vertical-alignment setting.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When the Height and Width dependency properties are explicitly set on an element by calling IXRFrameworkElement::SetHeight or IXRFrameworkElement::SetWidth, these measurements take higher precedent in the layout system, and they will override the effects of setting XRVerticalAlignment to XRVerticalAlignment_Stretch.

IXRCanvas does not use XRVerticalAlignment when it composes the layout because IXRCanvas is based on absolute positioning. Generally, the value of XRVerticalAlignment is potentially treated differently by any object that can have one or more IXRFrameworkElement derived object classes as child elements.

.NET Framework Equivalent

System.Windows.FrameworkElement.VerticalAlignment

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::SetVerticalAlignment