This documentation is archived and is not being maintained.

Style.Width Property

Gets or sets the width of the Web server control.

[Visual Basic]
Public Property Width As Unit
[C#]
public Unit Width {get; set;}
[C++]
public: __property Unit get_Width();
public: __property void set_Width(Unit);
[JScript]
public function get Width() : Unit;
public function set Width(Unit);

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.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException 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.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Style Class | Style Members | System.Web.UI.WebControls Namespace | Unit

Show: