StyleGroup
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class StyleGroup
Inheritance: objectStyleGroup
Constructors
Initializes a new instance of the StyleGroup class.
public StyleGroup()
Initializes a new instance of the StyleGroup class by specifying an element type. Creates a new ElementTypeDefault registration.
Initializes a new instance of the StyleGroup class by using an existing StyleGroup instance.
public StyleGroup(StyleGroup styleGroup)
The StyleGroup to be used as a source.
Initializes a new instance of the StyleGroup class by adding a default style registration.
public StyleGroup(StyleRegistration registration)
The default style registration.
Properties
Gets a collection with property setting groups for the style group.
public List<PropertySettingGroup> PropertySettingGroups { get; }
Gets a collection with style registrations for the style group.
public List<StyleRegistration> Registrations { get; }
Methods
Combines the style group with a specified style group by adding its property setting groups.
public void Combine(StyleGroup group, bool replaceExistingStyles)
style group to combine with.
replaceExistingStylesboolSpecifies whether to replace existing styles.
Creates a new style sheet based on this style group for the specified element.
public StyleSheet CreateStyleSheet(RadObject element)
The element.
Returns:An instance of StyleSheet if successful.
Determines whether the style group is compatible with the specified stylable node.
public bool IsCompatible(IStylableNode item)
The stylable node.
Returns:true if the style group is compatible.
Determines whether the style group is compatible with the specified style group.
public bool IsCompatible(StyleGroup dstGroup)
The stye group.
Returns:true if the style group is compatible.