ClassStyleRuleCollection
Represents a collection of StyleRule objects.
Definition
Namespace:Telerik.Reporting.Drawing
Assembly:Telerik.Reporting.dll
Syntax:
[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:
Constructors
StyleRuleCollection()
Initializes a new instance of the StyleRuleCollection class.
Declaration
public StyleRuleCollection()
StyleRuleCollection(StyleRule[])
Initializes a new instance of the
Methods
AddRange(StyleRule[])
Adds an array of style rule objects to the collection.
Declaration
public void AddRange(StyleRule[] rules)
Parameters
rules
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.