Style.Width Property

Definition

Gets or sets the width of the Web server control.

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

Property Value

A Unit that represents the width 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 Width property to specify or determine the width of the Web server control. This property is set with a Unit.

Applies to

Proizvod Verzije
.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