Class StyleGroup
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class StyleGroup
Constructors
StyleGroup()
Initializes a new instance of the StyleGroup class.
Declaration
public StyleGroup()
StyleGroup(String)
Initializes a new instance of the StyleGroup class by specifying an element type. Creates a new ElementTypeDefault registration.
Declaration
public StyleGroup(string elementType)
Parameters
System.String
elementType
The element type. |
StyleGroup(StyleGroup)
Initializes a new instance of the StyleGroup class by using an existing StyleGroup instance.
Declaration
public StyleGroup(StyleGroup styleGroup)
Parameters
StyleGroup
styleGroup
The StyleGroup to be used as a source. |
StyleGroup(StyleRegistration)
Initializes a new instance of the StyleGroup class by adding a default style registration.
Declaration
public StyleGroup(StyleRegistration registration)
Parameters
StyleRegistration
registration
The default style registration. |
Properties
PropertySettingGroups
Gets a collection with property setting groups for the style group.
Declaration
public List<PropertySettingGroup> PropertySettingGroups { get; }
Property Value
System.Collections.Generic.List<PropertySettingGroup>
|
Registrations
Gets a collection with style registrations for the style group.
Declaration
public List<StyleRegistration> Registrations { get; }
Property Value
System.Collections.Generic.List<StyleRegistration>
|
Methods
Combine(StyleGroup, Boolean)
Combines the style group with a specified style group by adding its property setting groups.
Declaration
public void Combine(StyleGroup group, bool replaceExistingStyles)
Parameters
StyleGroup
group
style group to combine with. |
System.Boolean
replaceExistingStyles
Specifies whether to replace existing styles. |
CreateStyleSheet(RadObject)
Creates a new style sheet based on this style group for the specified element.
Declaration
public StyleSheet CreateStyleSheet(RadObject element)
Parameters
RadObject
element
The element. |
Returns
StyleSheet
An instance of StyleSheet if successful. |
CreateTheme(String)
Creates a new theme which is a cloned version of all styles existing in this style group.
Declaration
public Theme CreateTheme(string name)
Parameters
System.String
name
The name of the new theme. |
Returns
Theme
An instance of the Theme class if successfull. |
IsCompatible(String)
Determines whether the style group is compatible with the specified control type.
Declaration
public bool IsCompatible(string controlType)
Parameters
System.String
controlType
The control type. |
Returns
System.Boolean
true if the style group is compatible. |
IsCompatible(Control)
Determines whether the style group is compatible with the specified control.
Declaration
public bool IsCompatible(Control control)
Parameters
System.Windows.Forms.Control
control
The control. |
Returns
System.Boolean
true if the style group is compatible. |
IsCompatible(IStylableNode)
Determines whether the style group is compatible with the specified stylable node.
Declaration
public bool IsCompatible(IStylableNode item)
Parameters
IStylableNode
item
The stylable node. |
Returns
System.Boolean
true if the style group is compatible. |
IsCompatible(StyleGroup)
Determines whether the style group is compatible with the specified style group.
Declaration
public bool IsCompatible(StyleGroup dstGroup)
Parameters
StyleGroup
dstGroup
The stye group. |
Returns
System.Boolean
true if the style group is compatible. |
SaveXML(String, String)
Saves all style settings presented in this group in a file with XML formatting.
Declaration
public void SaveXML(string themeName, string fileName)
Parameters
System.String
themeName
The theme name to be stored in the file. |
System.String
fileName
The name of the file to be created. |