This documentation is archived and is not being maintained.

WebControl.CreateControlStyle Method

Creates the style object that is used internally by the WebControl class to implement all style related properties. This method is used primarily by control developers.

[Visual Basic]
Protected Overridable Function CreateControlStyle() As Style
[C#]
protected virtual Style CreateControlStyle();
[C++]
protected: virtual Style* CreateControlStyle();
[JScript]
protected function CreateControlStyle() : Style;

Return Value

A Style that is used to implement all style-related properties of the control.

Remarks

The CreateControlStyle method is used to create the style object that is used internally to implement all style related properties. Derived classes can override this method to create a style that is appropriate to the class. This method is primarily used by control developers.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

WebControl Class | WebControl Members | System.Web.UI.WebControls Namespace | Style | ControlStyle

Show: