HorizontalAlignment enumeration

Applies to Windows and Windows Phone

Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.

Syntax


public enum HorizontalAlignment


<object property="enumMemberName"/>

Attributes

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

Members

The HorizontalAlignment enumeration has these members.

MemberValueDescription
Left0

An element aligned to the left of the layout slot for the parent element.

Center1

An element aligned to the center of the layout slot for the parent element.

Right2

An element aligned to the right of the layout slot for the parent element.

Stretch3

An element stretched to fill the entire layout slot of the parent element.

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