Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)] 
public enum HorizontalAlignment
/** @attribute LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable) */ 
public enum HorizontalAlignment
LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable) 
public enum HorizontalAlignment
<object property="EnumerationValue" .../>
 Member nameDescription
CenterAn element aligned to the center of the layout slot for the parent element.  
LeftAn element aligned to the left of the layout slot for the parent element.  
RightAn element aligned to the right of the layout slot for the parent element.  
StretchAn 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.