Bewerken

Share via


ThemeProvider Class

Definition

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

public ref class ThemeProvider sealed
public sealed class ThemeProvider
type ThemeProvider = class
Public NotInheritable Class ThemeProvider
Inheritance
ThemeProvider

Remarks

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.

Constructors

ThemeProvider(IDesignerHost, String, String, String[], String)

Initializes a new instance of the ThemeProvider class.

Properties

ContentHashCode

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

CssFiles

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.

DesignerHost

Gets an IDesignerHost object that represents the current designer environment.

ThemeName

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

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSkinBuilder(Control)

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

GetSkinControlBuildersForControlType(Type)

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

GetSkinsForControl(Type)

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

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also