This documentation is archived and is not being maintained.

SkinBuilder.ApplyTheme Method

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

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public Control ApplyTheme ()
public Control ApplyTheme ()
public function ApplyTheme () : Control
Not applicable.

Return Value

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 constructor. This method will return a null reference (Nothing in Visual Basic) if no control was passed to the constructor.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: