Class StyleRuleCollection
Represents a collection of StyleRule objects.
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll
Syntax
public class StyleRuleCollection : Collection<StyleRule>, IList<StyleRule>, ICollection<StyleRule>, IList, ICollection, IReadOnlyList<StyleRule>, IReadOnlyCollection<StyleRule>, IEnumerable<StyleRule>, IEnumerable
Constructors
StyleRuleCollection()
Initializes a new instance of the StyleRuleCollection class.
Declaration
public StyleRuleCollection()
StyleRuleCollection(StyleRule[])
Methods
AddRange(StyleRule[])
Adds an array of style rule objects to the collection.
Declaration
public void AddRange(StyleRule[] rules)
Parameters
StyleRule[]
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 System.Collections.ObjectModel.Collection`1.Add(`0) method.
To remove a StyleRule that you previously added, use the System.Collections.ObjectModel.Collection`1.Remove(`0), System.Collections.ObjectModel.Collection`1.RemoveAt(System.Int32), or System.Collections.ObjectModel.Collection`1.Clear methods.