New to Telerik Reporting? Start a free 30-day trial

Represents a collection of objects that implement ISelector

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(SelectorCollectionConverter))]
public class SelectorCollection : Collection<ISelector>

Inheritance: objectCollection<ISelector>SelectorCollection

Constructors

Initializes a new instance of the SelectorCollection class.

C#
public SelectorCollection()

Initializes a new instance of the

C#
public SelectorCollection(ISelector[] selectors)
Parameters:selectorsISelector[]

The initial ISelector objects that belong to the collection.

Methods

Adds an array of selector objects to the collection.

C#
public void AddRange(ISelector[] selectors)
Parameters:selectorsISelector[]

An array of ISelector objects to add to the collection.

The ISelector objects contained in the selectors array are appended to the end of the collection.

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

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

Determines whether the specified object is equal to the current SelectorCollection.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current collection.

Returns:

bool

true if the specified object is a SelectorCollection and contains the same elements in the same order; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for the current SelectorCollection.

C#
public override int GetHashCode()
Returns:

int

A hash code that represents the contents of the collection.

Overrides: object.GetHashCode()