Class
StyleGroup

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class StyleGroup

Inheritance: objectStyleGroup

Constructors

StyleGroup()

Initializes a new instance of the StyleGroup class.

Declaration

cs-api-definition
public StyleGroup()

StyleGroup(StyleGroup)

Initializes a new instance of the StyleGroup class by using an existing StyleGroup instance.

Declaration

cs-api-definition
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

cs-api-definition
public StyleGroup(StyleRegistration registration)

Parameters

registration

StyleRegistration

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

cs-api-definition
public StyleGroup(string elementType)

Parameters

elementType

string

The element type.

Properties

PropertySettingGroups

Gets a collection with property setting groups for the style group.

Declaration

cs-api-definition
public List<PropertySettingGroup> PropertySettingGroups { get; }

Property Value

List<PropertySettingGroup>

Registrations

Gets a collection with style registrations for the style group.

Declaration

cs-api-definition
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

cs-api-definition
public void Combine(StyleGroup group, bool replaceExistingStyles)

Parameters

group

StyleGroup

style group to combine with.

replaceExistingStyles

bool

Specifies whether to replace existing styles.

CreateStyleSheet(RadObject)

Creates a new style sheet based on this style group for the specified element.

Declaration

cs-api-definition
public StyleSheet CreateStyleSheet(RadObject element)

Parameters

element

RadObject

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

cs-api-definition
public Theme CreateTheme(string name)

Parameters

name

string

The name of the new theme.

Returns

Theme

An instance of the Theme class if successfull.

IsCompatible(Control)

Determines whether the style group is compatible with the specified control.

Declaration

cs-api-definition
public bool IsCompatible(Control control)

Parameters

control

Control

The control.

Returns

bool

true if the style group is compatible.

IsCompatible(IStylableNode)

Determines whether the style group is compatible with the specified stylable node.

Declaration

cs-api-definition
public bool IsCompatible(IStylableNode item)

Parameters

item

IStylableNode

The stylable node.

Returns

bool

true if the style group is compatible.

IsCompatible(StyleGroup)

Determines whether the style group is compatible with the specified style group.

Declaration

cs-api-definition
public bool IsCompatible(StyleGroup dstGroup)

Parameters

dstGroup

StyleGroup

The stye group.

Returns

bool

true if the style group is compatible.

IsCompatible(string)

Determines whether the style group is compatible with the specified control type.

Declaration

cs-api-definition
public bool IsCompatible(string controlType)

Parameters

controlType

string

The control type.

Returns

bool

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

cs-api-definition
public void SaveXML(string themeName, string fileName)

Parameters

themeName

string

The theme name to be stored in the file.

fileName

string

The name of the file to be created.