WebControl.ControlStyle 屬性

定義

取得 Web 伺服器控制項的樣式。Gets the style of the Web server control. 這個屬性主要由控制項開發人員使用。This property is used primarily by control developers.

public:
 property System::Web::UI::WebControls::Style ^ ControlStyle { System::Web::UI::WebControls::Style ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.UI.WebControls.Style ControlStyle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ControlStyle : System.Web.UI.WebControls.Style
Public ReadOnly Property ControlStyle As Style

屬性值

Style

Style,封裝 Web 伺服器控制項的外觀屬性。A Style that encapsulates the appearance properties of the Web server control.

屬性

備註

ControlStyle屬性 WebControl 會封裝指定控制面板之類別的所有屬性,例如 BorderColorFontThe ControlStyle property encapsulates all properties of the WebControl class that specify the appearance of the control, such as BorderColor and Font.

適用於

另請參閱