Class
StyleRuleCollection

Represents a collection of StyleRule objects.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter("Telerik.Reporting.Design.StyleRuleCollectionConverter, Telerik.Reporting.Design, Version=20.0.26.211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class StyleRuleCollection : Collection<StyleRule>

Inheritance: objectCollection<StyleRule>StyleRuleCollection

Derived Classes: StyleSheet

Constructors

StyleRuleCollection()

Initializes a new instance of the StyleRuleCollection class.

Declaration

cs-api-definition
public StyleRuleCollection()

StyleRuleCollection(StyleRule[])

Initializes a new instance of the

Declaration

cs-api-definition
public StyleRuleCollection(StyleRule[] rules)

Parameters

rules

StyleRule[]

The initial StyleRule objects that belong to the collection.

Methods

AddRange(StyleRule[])

Adds an array of style rule objects to the collection.

Declaration

cs-api-definition
public void AddRange(StyleRule[] rules)

Parameters

rules

StyleRule[]

An array of StyleRule objects to add to the collection.

Remarks

The StyleRule objects contained in the rules array are appended to the end of the collection.

You can use the AddRange method to quickly add a group of StyleRule objects to the collection instead of manually adding each StyleRule to the collection using the Add(T) method.

To remove a StyleRule that you previously added, use the Remove(T), RemoveAt(int), or Clear() methods.