TextAlignment enumeration

Applies to Windows and Windows Phone

Specifies whether text is centered, left-aligned, or right-aligned.

Syntax


public enum class TextAlignment


<object property="textAlignmentMemberName"/>

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The TextAlignment enumeration has these members.

MemberValueDescription
Center0

Text is centered within the container.

Left1

Text is aligned to the left edge of the container.

Right2

Text is aligned to the right edge of the container.

Justify3

Text is justified within the container.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft