This documentation is archived and is not being maintained.

HtmlTable::Height Property

Gets or sets the height of the HtmlTable control.

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

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

Property Value

Type: System::String
The height of the HtmlTable control.

Use the Height property to control the height of the HtmlTable control. The height is normally specified in pixels. However, you can also specify a percentage of the browser window height by appending a percent sign (%) to the value. For example, the value 100% indicates a height for the table that is the full height of the browser window. The table automatically expands and contracts as the user changes the window size.

NoteNote:

If you specify a value that is smaller than is required to display the contents of the HtmlTable control, this property is ignored.

The following code example demonstrates how to use the Height property to programmatically control the height of the HtmlTable control.

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: