HorizontalAlignment Enumeration

Specifies a child element's horizontal alignment within its parent element's layout space.

Namespace: Microsoft.SPOT.Presentation
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public enum HorizontalAlignment

Members

  Member name Description
Center A value specifying that the child element is aligned with the horizontal center of the parent element's layout space.
Left A value specifying that the child element is aligned with the left margin of the parent element's layout space.
Right A value specifying that the child element is aligned with the right margin of the parent element's layout space.
Stretch A value specifying that the child element is horizontally stretched to the left and right margins of the parent element's layout space. Note that explicitly set values of the UIElement.Height and UIElement.Width properties of an element take precedence over the Stretch value of the UIElement.HorizontalAlignment property.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Microsoft.SPOT.Presentation Namespace