HtmlTableCell.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 horizontal alignment of the content in the cell represented by an instance of HtmlTableCell. The default value is String.Empty, which indicates that this property is not set.Use the Align property to specify the horizontal alignment of the content in a cell represented by an instance of the HtmlTableCell class.
Note |
|---|
| Setting this property affects only the cell represented by an instance of the HtmlTableCell class. To apply the same alignment to the cells of an entire row in the table, set the Align property of the row represented by an instance of the HtmlTableRow class. |
The following table lists the values that can be used for this property.
| Value | Description |
|---|---|
| Left | Aligns the contents of a cell with the left edge of the cell. |
| Center | Aligns the contents of a cell in the middle of the cell. |
| Right | Aligns the contents of a cell with the right edge of the cell. |
Note |
|---|
| You can also use Justify and Char as values for this property; however, not all browsers support these features. |
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