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; }
member this.Width : System.Web.UI.WebControls.Unit with get, set
Public Property Width As Unit

屬性值

Unit,表示 Web 伺服器控制項的寬度。A 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. 這個屬性會使用Unit來設定。This property is set with a Unit.

適用於

另請參閱