Alignment Enumeration

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

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

public enum Alignment
public enum Alignment
public enum Alignment

 Member nameDescription
CenterAligns with the center of the screen. 
LeftAligns with the left of the screen. 
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. 
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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1

Community Additions