ClassRadItemCollection
Represents a specialized collection that stores and manages RadItem objects with support for ownership relationships, change notifications, and hierarchical item management.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadItemCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseRadItemCollection
Derived Classes:
Implements:
Inherited Members
Constructors
RadItemCollection()
Initializes a new instance of the RadItemCollectionBase class.
Declaration
public RadItemCollection()
RadItemCollection(RadItemCollection)
Initializes a new instance of RadItemCollection based on another RadItemCollection.
Declaration
public RadItemCollection(RadItemCollection value)
Parameters
value
A RadItemCollection from which the contents are copied.
RadItemCollection(RadItem[])
Initializes a new instance of RadItemCollection containing any array of RadItem objects.
Properties
ExcludedTypes
Gets or sets an array of the excluded items' types for this collection.
Declaration
[Browsable(false)]
public virtual Type[] ExcludedTypes { get; set; }
Property Value
Type[]
First
Declaration
[Browsable(false)]
public RadItem First { get; }
Property Value
ItemTypes
Gets or sets an array of the items' types in the collection.
Last
Declaration
[Browsable(false)]
public RadItem Last { get; }
Property Value
SealedTypes
Gets or sets an array of the sealed items' types for this collection. That are types that are allowed but not their descendants.
Declaration
[Browsable(false)]
public virtual Type[] SealedTypes { get; set; }
Property Value
Type[]
this[int]
Represents the entry at the specified index of the RadItem.
Declaration
public virtual RadItem this[int index] { get; set; }
Parameters
index
The zero-based index of the entry to locate in the collection.
Property Value
The entry at the specified index of the collection.
Exceptions
index is outside the valid range of indexes for the collection.
this[string]
Gets the first found item, with Name property equal to itemName specified, case-sensitive.
Methods
Add(RadItem)
Adds a RadItem with the specified value to the Telerik.WinControls.RadItemCollection .
AddRange(RadItemCollection)
Adds the contents of another RadItemCollection to the end of the collection.
Declaration
public void AddRange(RadItemCollection value)
Parameters
value
A RadItemCollection containing the objects to add to the collection.
AddRange(params RadItem[])
Copies the elements of an array to the end of the RadItemCollection.
Contains(RadItem)
Gets a value indicating whether the RadItemCollection contains the specified RadItem.
CopyTo(RadItem[], int)
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(RadItem[] array, int index)
Parameters
array
RadItem[]
The one-dimensional Array that is the destination of the values copied from RadItemCollection .
index
The index in array where copying begins.
Exceptions
array is multidimensional.
-or-
The number of elements in the RadItemCollection is greater than the available space between index and the end of array.
array is null.
index is less than array's lowbound.
GetEnumerator()
Returns an enumerator that can iterate through the RadItemCollection .
Declaration
public RadItemCollection.RadItemEnumerator GetEnumerator()
Returns
RadItemCollection.RadItemEnumerator
None.
IndexOf(RadItem)
Returns the index of a RadItem in the RadItemCollection .
Insert(int, RadItem)
Inserts a RadItem into the RadItemCollection at the specified index.
OnClear()
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnItemsChanged(RadItem, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(RadItem target, ItemsChangeOperation operation)
Parameters
target
operation
OnSort()
Declaration
protected virtual void OnSort()
OnSortComplete()
Declaration
protected virtual void OnSortComplete()
OnValidate(object)
Declaration
protected override void OnValidate(object value)
Parameters
value
Overrides
Remove(RadItem)
Removes a specific RadItem from the RadItemCollection .
Declaration
public void Remove(RadItem value)
Parameters
value
The RadItem to remove from the RadItemCollection .
Exceptions
value is not found in the Collection.
ResumeNotifications()
Declaration
public void ResumeNotifications()
Sort()
Sorts the elements in the entire RadElementCollection using the IComparable implementation of each element.
Declaration
public void Sort()
Sort(IComparer)
Sorts the elements in the entire RadElementCollection using the specified comparer.
Declaration
public void Sort(IComparer comparer)
Parameters
comparer
The IComparer implementation to use when comparing elements.
Sort(int, int, IComparer)
Sorts the elements in a range of elements in RadElementCollection using the specified comparer.
SuspendNotifications()
Declaration
public void SuspendNotifications()
Events
ItemsChanged
Fires when item is changed.
Declaration
public event ItemChangedDelegate ItemsChanged
Event Value