HtmlTableCell::VAlign Property
Gets or sets the vertical alignment for the content of a cell represented by an instance of the HtmlTableCell class.
Assembly: System.Web (in System.Web.dll)
<asp:HtmlTableCell VAlign="String" />
Property Value
Type: System::StringThe vertical alignment for the content of a cell represented by an instance of HtmlTableCell. 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 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 vertical alignment to the cells of an entire row in the table, set the VAlign 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 |
|---|---|
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. |
Note: |
|---|
You can also use BaseLine as a value for this property. However, not all browsers support this feature. |
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.
Note: