[]
Encapsulates a theme location (built-in or external file) and its name, can be represented as a single string.
public class C1ThemeLocator
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. |
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. |
Name | Description |
---|---|
GetAvailableThemes(LocationType) | Gets available theme names. |
GetTheme() | Gets the current theme. |
GetThemeName(out LocationType) | Gets the current theme name and location. |
ToString() |
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. |