This documentation is archived and is not being maintained.
TableItemStyle.VerticalAlign Property
.NET Framework 1.1
Gets or sets the vertical alignment of the contents in a cell.
[Visual Basic] Public Overridable Property VerticalAlign As VerticalAlign [C#] public virtual VerticalAlign VerticalAlign {get; set;} [C++] public: __property virtual VerticalAlign get_VerticalAlign(); public: __property virtual void set_VerticalAlign(VerticalAlign); [JScript] public function get VerticalAlign() : VerticalAlign; public function set VerticalAlign(VerticalAlign);
Property Value
One of the VerticalAlign enumeration values. The default is NotSet.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | The specified vertical alignment was not one of the VerticalAlign enumeration values. |
Remarks
Use the VerticalAlign property to specify the vertical alignment of the contents of the cell. The following table lists the possible values.
| Vertical Alignment | Description |
|---|---|
| NotSet | The vertical alignment is not set. |
| Top | The contents of the cell are aligned with the upper edge of the cell. |
| Middle | The contents of the cell are aligned with the center of the cell. |
| Bottom | The contents of the cell are aligned with the lower edge of the cell. |
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
TableItemStyle Class | TableItemStyle Members | System.Web.UI.WebControls Namespace
Show: