This documentation is archived and is not being maintained.

SkinBuilder Constructor

Initializes a new instance of the SkinBuilder class, setting the control with which the builder is associated, the general ControlBuilder object provided by the ThemeProvider object for the control, and a path to the theme file.

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

public SkinBuilder(
	ThemeProvider provider,
	Control control,
	ControlBuilder skinBuilder,
	string themePath


Type: System.Web.UI.ThemeProvider
A ThemeProvider that encapsulates theme information for controls in a designer environment.
Type: System.Web.UI.Control
The Control with which the SkinBuilder is associated. The ApplyTheme method applies a control skin to this control and returns it.
Type: System.Web.UI.ControlBuilder
A ControlBuilder provided by the ThemeProvider for the control's type.
Type: System.String
The absolute path to the theme file.

This constructor is called by the GetSkinBuilder method of the ThemeProvider class to return a SkinBuilder object for the control specified in the control parameter.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.