This documentation is archived and is not being maintained.

Alignment Enumeration

Specifies the alignment of a rendered object. This class cannot be inherited.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

Public Enumeration Alignment
Dim instance As Alignment

Member nameDescription
NotSetDefault value. If the value is NotSet, then the alignment is inherited from the control's style, or, if the style is not defined, from the control's parent control.
LeftAligns with the left of the screen.
CenterAligns with the center of the screen.
RightAligns with the right of the screen.

The Alignment enumeration represents the horizontal positioning of an item on its parent container, such as a panel or form. For example, if you add an image to a form, you can set its horizontal position to align with the right side of the form.

Although you can use the bit values in scripting languages, you cannot use them with ASP.NET. For example, Alignment = "2" within a panel tag is not a valid statement. However, in Visual C#, you can use this.myPanel.Alignment = 2.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1