Class XmlSelectorCollection
A collection that stores XmlElementSelector objects.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class XmlSelectorCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
XmlSelectorCollection()
XmlSelectorCollection(Int32)
Initializes a new instance of XmlSelectorCollection.
Declaration
public XmlSelectorCollection(int capacity)
Parameters
System.Int32
capacity
|
XmlSelectorCollection(XmlElementSelector[])
Initializes a new instance of XmlSelectorCollection containing any array of XmlElementSelector objects.
Declaration
public XmlSelectorCollection(XmlElementSelector[] value)
Parameters
XmlElementSelector[]
value
A array of XmlElementSelector objects with which to intialize the collection |
XmlSelectorCollection(XmlSelectorCollection)
Initializes a new instance of XmlSelectorCollection based on another XmlSelectorCollection.
Declaration
public XmlSelectorCollection(XmlSelectorCollection value)
Parameters
XmlSelectorCollection
value
A XmlSelectorCollection from which the contents are copied |
Properties
Item[Int32]
Represents the entry at the specified index of the XmlElementSelector.
Declaration
public XmlElementSelector this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the entry to locate in the collection. |
Property Value
XmlElementSelector
The entry at the specified index of the collection. |
Exceptions
System.ArgumentOutOfRangeException
|
Methods
Add(XmlElementSelector)
Adds a XmlElementSelector with the specified value to the XmlSelectorCollection .
Declaration
public int Add(XmlElementSelector value)
Parameters
XmlElementSelector
value
The XmlElementSelector to add. |
Returns
System.Int32
The index at which the new element was inserted. |
AddRange(XmlElementSelector[])
Copies the elements of an array to the end of the XmlSelectorCollection.
Declaration
public void AddRange(XmlElementSelector[] value)
Parameters
XmlElementSelector[]
value
An array of type XmlElementSelector containing the objects to add to the collection. |
AddRange(XmlSelectorCollection)
Adds the contents of another XmlSelectorCollection to the end of the collection.
Declaration
public void AddRange(XmlSelectorCollection value)
Parameters
XmlSelectorCollection
value
A XmlSelectorCollection containing the objects to add to the collection. |
Contains(XmlElementSelector)
Gets a value indicating whether the XmlSelectorCollection contains the specified XmlElementSelector.
Declaration
public bool Contains(XmlElementSelector value)
Parameters
XmlElementSelector
value
The XmlElementSelector to locate. |
Returns
System.Boolean
true if the XmlElementSelector is contained in the collection; otherwise, false. |
CopyTo(XmlElementSelector[], Int32)
Copies the XmlSelectorCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(XmlElementSelector[] array, int index)
Parameters
XmlElementSelector[]
array
The one-dimensional System.Array that is the destination of the values copied from XmlSelectorCollection . |
System.Int32
index
The index in |
Exceptions
System.ArgumentException
-or- The number of elements in the XmlSelectorCollection is greater than the available space between |
System.ArgumentNullException
|
System.ArgumentOutOfRangeException
|
GetEnumerator()
Returns an enumerator that can iterate through the XmlSelectorCollection .
Declaration
public XmlSelectorCollection.XmlSelectorEnumerator GetEnumerator()
Returns
XmlSelectorCollection.XmlSelectorEnumerator
None. |
IndexOf(XmlElementSelector)
Returns the index of a XmlElementSelector in the XmlSelectorCollection .
Declaration
public int IndexOf(XmlElementSelector value)
Parameters
XmlElementSelector
value
The XmlElementSelector to locate. |
Returns
System.Int32
The index of the XmlElementSelector of |
Insert(Int32, XmlElementSelector)
Inserts a XmlElementSelector into the XmlSelectorCollection at the specified index.
Declaration
public void Insert(int index, XmlElementSelector value)
Parameters
System.Int32
index
The zero-based index where |
XmlElementSelector
value
The XmlElementSelector to insert. |
Remove(XmlElementSelector)
Removes a specific XmlElementSelector from the XmlSelectorCollection .
Declaration
public void Remove(XmlElementSelector value)
Parameters
XmlElementSelector
value
The XmlElementSelector to remove from the XmlSelectorCollection . |
Exceptions
System.ArgumentException
|