Style.Height 屬性

定義

取得或設定 Web 伺服器控制項的高度。Gets or sets the height of the Web server control.

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

屬性值

Unit,表示 Web 伺服器控制項的高度。A Unit that represents the height 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.

備註

Height使用屬性,即可指定或決定 Web 服務器控制項的高度。Use the Height property to specify or determine the height of the Web server control. 這個屬性會使用Unit來設定。This property is set with a Unit.

適用於

另請參閱