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.

.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: