Style.Height Property

Definition

Gets or sets the height of the Web server control.

C#
[System.ComponentModel.Bindable(true)]
public System.Web.UI.WebControls.Unit Height { get; set; }
C#
public System.Web.UI.WebControls.Unit Height { get; set; }

Property Value

A Unit that represents the height of the Web server control. The default is Empty, which indicates that this property is not set.

Attributes

Exceptions

The Value property of the Unit is negative.

Remarks

Use the Height property to specify or determine the height of the Web server control. This property is set with a Unit.

Applies to

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also