System.Web.UI.SkinBuilder.ApplyTheme Method

Applies a theme and a control skin to the current control at design time, if a System.Web.UI.SkinBuilder object is associated with the control.

Syntax

public Control ApplyTheme ()

Returns

The control instance to which the theme or style sheet theme and any control skin was applied. This is the same instance passed to the builder's SkinBuilder.#ctor(ThemeProvider, Control, ControlBuilder, string) constructor. This method will return null if no control was passed to the constructor.

Remarks

System.Web.UI.SkinBuilder objects are associated with controls at design time by specifying an System.Web.UI.IThemeResolutionService instance for the System.Web.UI.ControlBuilder object of a control that supplies a System.Web.UI.ThemeProvider object. The System.Web.UI.ThemeProvider object can return a System.Web.UI.SkinBuilder object for a given control.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0