ThemeProvider Class
TOC
Collapse the table of content
Expand the table of content

ThemeProvider Class

 

Provides a class that encapsulates theme and style sheet information for controls in a designer environment.

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

System.Object
  System.Web.UI.ThemeProvider

public sealed class ThemeProvider

NameDescription
System_CAPS_pubmethodThemeProvider(IDesignerHost, String, String, String[], String)

Initializes a new instance of the ThemeProvider class.

NameDescription
System_CAPS_pubpropertyContentHashCode

Gets the hash of the theme definition passed to the constructor.

System_CAPS_pubpropertyCssFiles

Gets a set of strings that represent the names of any cascading style sheet (CSS) files associated with the current theme, if the theme is a style sheet theme.

System_CAPS_pubpropertyDesignerHost

Gets an IDesignerHost object that represents the current designer environment.

System_CAPS_pubpropertyThemeName

Gets the name of the theme or style sheet theme that the ThemeProvider instance represents.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSkinBuilder(Control)

Retrieves a SkinBuilder instance for the specified control, which is used to apply a theme and control skin in a designer environment.

System_CAPS_pubmethodGetSkinControlBuildersForControlType(Type)

Gets an IDictionary object that contains a set of SkinBuilder objects for the specified Type.

System_CAPS_pubmethodGetSkinsForControl(Type)

Gets an ICollection of skin identifiers that are associated with the specified Type.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Page developers and control authors do not use the ThemeProvider class. ASP.NET developer tool and designer builders use the ThemeProvider class in conjunction with the SkinBuilder class and the IThemeResolutionService interface to apply themes and their respective control skins to controls at design time.

The ThemeProvider class encapsulates the information needed to apply a theme or style sheet theme and its control skins to the child controls of a control in a designer.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft