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
Public propertyStatic member AvailableThemes Gets a list of all available themes in the theme folder.
Public propertyStatic member CurrentTheme Gets or sets the current theme.
Public propertyStatic member DefaultTheme Gets the default theme.
Public propertyStatic member ThemeDirectory Gets the folder within a Web site root folder that contains the theme folders.

Top

Methods

  Name Description
Public methodStatic member GetResourcePath(String) Gets the virtual path of the specified file in the root of the theme folder.
Public methodStatic member GetResourcePath(String, String) Gets the virtual path of the specified file in a subfolder of the theme folder.
Public methodStatic member 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.

See Also

Reference

Microsoft.Web.Helpers Namespace