This documentation is archived and is not being maintained.

HtmlTableRow::VAlign Property

Gets or sets the vertical 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^ VAlign {
	String^ get ();
	void set (String^ value);
}
<asp:HtmlTableRow VAlign="String" />

Property Value

Type: System::String
The vertical 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 VAlign property to specify the vertical 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 VAlign property for that cell.

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

Value

Description

Top

Aligns the contents of a cell with the upper edge of the cell.

Middle

Aligns the contents of a cell in the center of the cell.

Bottom

Aligns the contents of a cell with the lower edge of the cell.

NoteNote

You can also use BaseLine as a value for this property. However, not all browsers support this feature.

The following code example demonstrates how to use the VAlign property to control the vertical alignment of the contents of the cells in an entire row.

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

.NET Framework

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

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: