Assembly: System.Web.Mobile (in system.web.mobile.dll)
|Center||Aligns with the center of the screen.|
|Left||Aligns with the left of the screen.|
|NotSet||Default 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.|
|Right||Aligns 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 Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.