HorizontalAlignment Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

<object property="EnumerationValue"  .../>
value = "EnumerationValue"

Enumeration Values

Value

Description

Left

Aligned to the left of the layout slot.

Center

Aligned to the center of the layout slot.

Right

Aligned to the right of the layout slot.

Stretch

Stretched to fill the entire layout slot.

Managed Equivalent

HorizontalAlignment

Applies To

HorizontalAligment

Version Information

Silverlight 2