Themes Class
Enables a Web site to change its theme.
Inheritance Hierarchy
System.Object
Microsoft.Web.Helpers.Themes
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public NotInheritable Class Themes
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class Themes
public ref class Themes abstract sealed
public final class Themes
The Themes type exposes the following members.
Properties
Name | Description | |
---|---|---|
AvailableThemes | Gets a list of all available themes in the theme folder. | |
CurrentTheme | Gets or sets the current theme. | |
DefaultTheme | Gets the default theme. | |
ThemeDirectory | Gets the folder within a Web site root folder that contains the theme folders. |
Top
Methods
Name | Description | |
---|---|---|
GetResourcePath(String) | Gets the virtual path of the specified file in the root of the theme folder. | |
GetResourcePath(String, String) | Gets the virtual path of the specified file in a subfolder of the theme folder. | |
Initialize | Initializes a new instance of the class by specifying the path to the theme folder and the default theme. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.