HorizontalAlignment Enumeration
TOC
Collapse the table of content
Expand the table of content

HorizontalAlignment Enumeration

 

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

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

[<LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable)>]
type HorizontalAlignment

Member nameDescription
Center

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

Left

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

Right

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

Stretch

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

Stretch is the default layout behavior.

Element Height and Width properties that are explicitly set take precedence over the Stretch property value.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft