[]
        
(Showing Draft Content)

C1.Win.C1Themes.C1ThemeLocator

C1ThemeLocator Class

Encapsulates a theme location (built-in or external file) and its name, can be represented as a single string.

Inheritance
C1ThemeLocator
Namespace: C1.Win.C1Themes
Assembly: C1.Win.C1Themes.4.8.dll
Syntax
public class C1ThemeLocator

Constructors

Name Description
C1ThemeLocator(LocationType, string)

Initializes a new instance of the ThemeLocator type from a location type and a theme name.

C1ThemeLocator(string)

Initializes a new instance of the ThemeLocator type from a string representing a theme locator.

Properties

Name Description
Location

Gets the current theme location.

ThemeName

Gets the current theme name.

ThemesFolder

Gets or sets the name of the folder containing theme files.

Theme files are assumed to be located in the sub-folder of the current application folder with this name.

The default is "Themes", so e.g. if the path to the current app is "c:\myfolder\myapp.exe", theme files will be searched in "c:\myfolder\Themes".

Sub-folders are included in the search.

Methods

Name Description
GetAvailableThemes(LocationType)

Gets available theme names.

GetTheme()

Gets the current theme.

GetThemeName(out LocationType)

Gets the current theme name and location.

ToString()

Operators

Name Description
implicit operator string(C1ThemeLocator)

Operator for converting a theme location object to a string.

implicit operator C1ThemeLocator(string)

The operator creates a new theme location object.