This documentation is archived and is not being maintained.

HtmlTableRow::Align Property

Gets or sets the horizontal alignment of the content in the cells of a row in an HtmlTable control.

Namespace:  System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

public:
property String^ Align {
	String^ get ();
	void set (String^ value);
}
<asp:HtmlTableRow Align="String" />

Property Value

Type: System::String
The horizontal alignment of the content in the cells of a row in an HtmlTable control. 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 the cells of a row in an HtmlTable control.

NoteNote:

Setting this property affects all cells in a row of a table represented by an instance of the HtmlTableRow class. To apply an alignment attribute to a single cell of a row, set the Align property for that cell.

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

Value

Description

Left

Aligns the contents of the cell with the left edge of the cell.

Center

Aligns the contents of the cell in the middle of the cell.

Right

Aligns the contents of the cell with the right edge of the cell.

NoteNote:

You can also use Justify and Char as values for this property. However, not all browsers support these features.

The following example demonstrates how to use the Align property to control the horizontal alignment of the contents of the cells in an entire row.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: