ClassTheme
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class Theme : ICloneable
Inheritance: objectTheme
Implements:
Constructors
Theme(string)
Initializes a new instance of the Theme class.
Declaration
public Theme(string name)
Parameters
name
The name of the theme.
Properties
DesignTimeVisible
Gets or sets a value indicating whether the theme should be visible at design time. This property value is not serialized.
Name
Gets or sets the name of the theme.
Repositories
Gets a collection containing the repositiories for the theme.
Declaration
public List<StyleRepository> Repositories { get; }
Property Value
List<StyleRepository>
StyleGroups
Gets a collection containing the style groups for the theme.
Declaration
public List<StyleGroup> StyleGroups { get; }
Property Value
List<StyleGroup>
Methods
Clone()
Creates a new cloned version of the class.
Declaration
public object Clone()
Returns
A new instance of the Theme class
Implements
Combine(Theme, bool, bool)
Combines two themes.
FindRepository(string)
Searches for a StyleRepository based on its key.
Declaration
public StyleRepository FindRepository(string key)
Parameters
key
The repository key to search for.
Returns
An instance of StyleRepository if successfull
FindStyleGroup(Control)
Searches for a StyleGroup for a specified control.
Declaration
public StyleGroup FindStyleGroup(Control control)
Parameters
control
The control to search for.
Returns
An instance of StyleGroup if successfull.
FindStyleGroup(IStylableNode)
Searches for a StyleGroup for a specified stylable node.
Declaration
public StyleGroup FindStyleGroup(IStylableNode item)
Parameters
item
The stylable node to search for.
Returns
An instance of StyleGroup if successfull.
FindStyleGroup(string)
Searches for a StyleGroup based on the control type.
Declaration
public StyleGroup FindStyleGroup(string controlType)
Parameters
controlType
The control type to search for.
Returns
An instance of StyleGroup if successfull.
IsCompatible(string)
Determines whether this theme is compatible with the specified theme name.
MergeRepositories()
Relates repositories with style groups.
Declaration
public void MergeRepositories()
ReadCSS(string)
Creates a new theme by reading a CSS like file.
ReadCSSText(string)
Creates a new theme by reading a CSS like formatted text.
ReadFile(string)
Creates a new theme by reading a file. The function determines the correct file format by using file extension.
ReadResource(Assembly, string)
Creates a new theme by loading it from a resource. The function determines the correct file format by using file extension.
ReadTSSP(string)
Creates a new theme by reading a TSSP file.
ReadXML(string)
Creates a new theme by reading an XML file.