次の方法で共有


XRHorizontalAlignment (Compact 2013)

3/28/2014

This enumeration contains values that indicate where a UI element will be displayed on the horizontal axis in relation to the allocated layout slot of the parent element.

Syntax

enum XRHorizontalAlignment{
    XRHorizontalAlignment_Left=0,
    XRHorizontalAlignment_Center=1,
    XRHorizontalAlignment_Right=2,
    XRHorizontalAlignment_Stretch=3,
};

Members

  • XRHorizontalAlignment_Left
    The element is aligned to the left side of the layout slot for the parent element.
  • XRHorizontalAlignment_Center
    The element is aligned at the center of the layout slot for the parent element.
  • XRHorizontalAlignment_Right
    The element is aligned to the right side of the layout slot for the parent element.
  • XRHorizontalAlignment_Stretch
    The element is stretched to fill the complete layout slot of the parent element.

Remarks

XRHorizontalAlignment_Stretch is the default layout behavior.

.NET Framework Equivalent

System.Windows.HorizontalAlignment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRFrameworkElement::GetHorizontalAlignment
IXRFrameworkElement::SetHorizontalAlignment
IXRControl::GetHorizontalContentAlignment
IXRControl::SetHorizontalContentAlignment