System.Web.UI.HtmlControls.HtmlTableCell.Align Property

Gets or sets the horizontal alignment of the content in the cell represented by an instance of the System.Web.UI.HtmlControls.HtmlTableCell class.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public string Align { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the HtmlTableCell.Align property to specify the horizontal alignment of the content in a cell represented by an instance of the System.Web.UI.HtmlControls.HtmlTableCell class.

Note:

Setting this property affects only the cell represented by an instance of the System.Web.UI.HtmlControls.HtmlTableCell class. To apply the same alignment to the cells of an entire row in the table, set the HtmlTableRow.Align property of the row represented by an instance of the System.Web.UI.HtmlControls.HtmlTableRow class.

The following table lists the values that can be used for this property.

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.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0