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);
}

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.

System_CAPS_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
Available since 1.1
Return to top
Show: