ClassStyleGroup
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class StyleGroup
Inheritance: objectStyleGroup
Constructors
StyleGroup()
Initializes a new instance of the StyleGroup class.
Declaration
public StyleGroup()
StyleGroup(StyleGroup)
Initializes a new instance of the StyleGroup class by using an existing StyleGroup instance.
Declaration
public StyleGroup(StyleGroup styleGroup)
Parameters
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
registration
The default style registration.
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
elementType
The element type.
Properties
PropertySettingGroups
Gets a collection with property setting groups for the style group.
Declaration
public List<PropertySettingGroup> PropertySettingGroups { get; }
Property Value
List<PropertySettingGroup>
Registrations
Gets a collection with style registrations for the style group.
Declaration
public List<StyleRegistration> Registrations { get; }
Property Value
List<StyleRegistration>
Methods
Combine(StyleGroup, bool)
Combines the style group with a specified style group by adding its property setting groups.
Declaration
public void Combine(StyleGroup group, bool replaceExistingStyles)
Parameters
group
style group to combine with.
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
element
The element.
Returns
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.
IsCompatible(Control)
Determines whether the style group is compatible with the specified control.
IsCompatible(IStylableNode)
Determines whether the style group is compatible with the specified stylable node.
Declaration
public bool IsCompatible(IStylableNode item)
Parameters
item
The stylable node.
Returns
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
dstGroup
The stye group.
Returns
true if the style group is compatible.
IsCompatible(string)
Determines whether the style group is compatible with the specified control type.
SaveXML(string, string)
Saves all style settings presented in this group in a file with XML formatting.