Style.Width 属性

定义

获取或设置 Web 服务器控件的宽度。Gets or sets the width of the Web server control.

public:
 property System::Web::UI::WebControls::Unit Width { System::Web::UI::WebControls::Unit get(); void set(System::Web::UI::WebControls::Unit value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.WebControls.Unit Width { get; set; }
public System.Web.UI.WebControls.Unit Width { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Width : System.Web.UI.WebControls.Unit with get, set
member this.Width : System.Web.UI.WebControls.Unit with get, set
Public Property Width As Unit

属性值

Unit

表示 Web 服务器控件宽度的 UnitA Unit that represents the width of the Web server control. 默认值为 Empty,指示未设置此属性。The default is Empty, which indicates that this property is not set.

属性

例外

ValueUnit 属性是负值。The Value property of the Unit is negative.

注解

使用 Width 属性来指定或确定 Web 服务器控件的宽度。Use the Width property to specify or determine the width of the Web server control. 此属性使用设置 UnitThis property is set with a Unit.

适用于

另请参阅