WebControl.ControlStyle WebControl.ControlStyle WebControl.ControlStyle WebControl.ControlStyle Property

定义

获取 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; }
member this.ControlStyle : System.Web.UI.WebControls.Style
Public ReadOnly Property ControlStyle As Style

属性值

Style,它封装 Web 服务器控件的外观属性。A Style that encapsulates the appearance properties of the Web server control.

注解

属性封装WebControl类的所有属性,这些属性指定控件的外观,例如BorderColorFontControlStyleThe ControlStyle property encapsulates all properties of the WebControl class that specify the appearance of the control, such as BorderColor and Font.

适用于

另请参阅