ThemeProvider Constructor
Collapse the table of content
Expand the table of content

ThemeProvider Constructor

Initializes a new instance of the ThemeProvider class.

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

public ThemeProvider(
	IDesignerHost host,
	string name,
	string themeDefinition,
	string[] cssFiles,
	string themePath


Type: System.ComponentModel.Design.IDesignerHost
An IDesignerHost that represents the current designer environment.
Type: System.String
The name of the theme or style sheet theme that the ThemeProvider represents. This parameter can be null.
Type: System.String
Theme information passed to the DesignTimeTemplateParser.ParseTheme(IDesignerHost, String, String) method. These are the raw, concatenated contents of the theme.
Type: System.String[]
The names of the cascading style sheet (CSS) files that are included with the theme that the ThemeProvider represents.
Type: System.String
The absolute path of the file that contains the theme and control skin information for the named theme.

The themeDefinition parameter passed to the ThemeProvider(IDesignerHost, String, String, String[], String) constructor represents the concatenation of all control skins associated with the theme but is not exposed directly by the ThemeProvider class, as this particular parameter is passed to a DesignTimeTemplateParser to retrieve a ControlBuilder and is not otherwise used.

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

Community Additions

© 2016 Microsoft