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; }
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.

属性

注解

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

适用于

另请参阅