HtmlTable.Align Property
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_Align () /** @property */ public void set_Align (String value)
public function get Align () : String public function set Align (value : String)
Property Value
The alignment of the HtmlTable control in relation to other elements on the Web page. The default value is String.Empty, which indicates that this property is not set.Use the Align property to specify the alignment of the HtmlTable control in relation to other elements on the Web page.
Note |
|---|
| This property does not control the alignment of the contents in the cells of the HtmlTable control. To control the alignment of contents of an individual cell, use the Align and VAlign properties of the HtmlTableCell class. You can also control the alignment of contents of the cells in an entire row by using the Align and VAlign properties of the HtmlTableRow class. |
The following table lists the values that can be used for this property.
| Value | Description |
|---|---|
| Left | Aligns the HtmlTable control on the left edge of the Web page. |
| Center | Aligns the HtmlTable control in the middle of the Web page. |
| Right | Aligns the HtmlTable control on the right edge of the Web page. |
Note |
|---|
| If you specify Left or Right alignment, other elements on the Web page will wrap to the right or left of the HtmlTable control, respectively. If you specify Center alignment, no wrapping occurs and other elements appear below the control. |
Windows 98, Windows 2000 SP4, 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.
Note