Partager via


XRTextAlignment (Compact 2013)

3/28/2014

This enumeration specifies whether text is centered, left-aligned, or right-aligned in a text box or text block.

Syntax

enum XRTextAlignment{
    XRTextAlignment_Center=0,
    XRTextAlignment_Left=1,
    XRTextAlignment_Right=2,
};

Members

  • XRTextAlignment_Center
    Indicates that text is centered.
  • XRTextAlignment_Left
    Indicates that text is left-aligned.
  • XRTextAlignment_Right
    Indicates that text is right-aligned.

.NET Framework Equivalent

System.Windows.TextAlignment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRTextBlock::GetTextAlignment
IXRTextBlock::SetTextAlignment
IXRTextBox::GetTextAlignment
IXRTextBox::SetTextAlignment