New to Telerik UI for WinFormsStart a free 30-day trial

A collection that stores XmlElementSelector objects.

Definition

Constructors

Initializes a new instance of XmlSelectorCollection.

C#
public XmlSelectorCollection()

Initializes a new instance of XmlSelectorCollection.

C#
public XmlSelectorCollection(int capacity)
Parameters:capacityint

Initializes a new instance of XmlSelectorCollection containing any array of XmlElementSelector objects.

C#
public XmlSelectorCollection(XmlElementSelector[] value)
Parameters:valueXmlElementSelector[]

A array of XmlElementSelector objects with which to intialize the collection

Initializes a new instance of XmlSelectorCollection based on another XmlSelectorCollection.

C#
public XmlSelectorCollection(XmlSelectorCollection value)
Parameters:valueXmlSelectorCollection

A XmlSelectorCollection from which the contents are copied

Properties

Represents the entry at the specified index of the XmlElementSelector.

C#
public XmlElementSelector this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions:

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a XmlElementSelector with the specified value to the XmlSelectorCollection .

C#
public int Add(XmlElementSelector value)
Parameters:valueXmlElementSelector

The XmlElementSelector to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the XmlSelectorCollection.

C#
public void AddRange(XmlElementSelector[] value)
Parameters:valueXmlElementSelector[]

An array of type XmlElementSelector containing the objects to add to the collection.

Adds the contents of another XmlSelectorCollection to the end of the collection.

C#
public void AddRange(XmlSelectorCollection value)
Parameters:valueXmlSelectorCollection

A XmlSelectorCollection containing the objects to add to the collection.

Gets a value indicating whether the XmlSelectorCollection contains the specified XmlElementSelector.

C#
public bool Contains(XmlElementSelector value)
Parameters:valueXmlElementSelector

The XmlElementSelector to locate.

Returns:

bool

true if the XmlElementSelector is contained in the collection; otherwise, false.

Copies the XmlSelectorCollection values to a one-dimensional Array instance at the specified index.

C#
public void CopyTo(XmlElementSelector[] array, int index)
Parameters:arrayXmlElementSelector[]

The one-dimensional Array that is the destination of the values copied from XmlSelectorCollection .

indexint

The index in array where copying begins.

Exceptions:

ArgumentException

array is multidimensional.

-or-

The number of elements in the XmlSelectorCollection is greater than the available space between index and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

Returns an enumerator that can iterate through the XmlSelectorCollection .

C#
public XmlSelectorCollection.XmlSelectorEnumerator GetEnumerator()
Returns:

XmlSelectorCollection.XmlSelectorEnumerator

None.

Returns the index of a XmlElementSelector in the XmlSelectorCollection .

C#
public int IndexOf(XmlElementSelector value)
Parameters:valueXmlElementSelector

The XmlElementSelector to locate.

Returns:

int

The index of the XmlElementSelector of value in the XmlSelectorCollection, if found; otherwise, -1.

Inserts a XmlElementSelector into the XmlSelectorCollection at the specified index.

C#
public void Insert(int index, XmlElementSelector value)
Parameters:indexint

The zero-based index where value should be inserted.

valueXmlElementSelector

The XmlElementSelector to insert.

Removes a specific XmlElementSelector from the XmlSelectorCollection .

C#
public void Remove(XmlElementSelector value)
Parameters:valueXmlElementSelector

The XmlElementSelector to remove from the XmlSelectorCollection .

Exceptions:

ArgumentException

value is not found in the Collection.