ClassRadCommandBarBaseItemCollection
A collection that stores RadItem objects.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCommandBarBaseItemCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseRadCommandBarBaseItemCollection
Implements:
Inherited Members
Constructors
RadCommandBarBaseItemCollection()
Initializes a new instance of the RadItemCollectionBase class.
Declaration
public RadCommandBarBaseItemCollection()
RadCommandBarBaseItemCollection(RadCommandBarBaseItemCollection)
Initializes a new instance of RadItemCollection based on another RadItemCollection.
Declaration
public RadCommandBarBaseItemCollection(RadCommandBarBaseItemCollection value)
Parameters
value
RadCommandBarBaseItemCollection
A RadItemCollection from which the contents are copied.
RadCommandBarBaseItemCollection(RadCommandBarBaseItem[])
Initializes a new instance of RadItemCollection containing any array of RadItem objects.
Declaration
public RadCommandBarBaseItemCollection(RadCommandBarBaseItem[] value)
Parameters
value
A array of RadItem objects with which to intialize the collection
RadCommandBarBaseItemCollection(RadElement)
Initializes a new instance of RadItemCollection.
Declaration
public RadCommandBarBaseItemCollection(RadElement owner)
Parameters
owner
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
Owner
Gets or sets the owner of the collection.
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 RadCommandBarBaseItem 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.
Declaration
public RadCommandBarBaseItem this[string itemName] { get; }
Parameters
itemName
item Name
Property Value
RadItem if found, null (Nothing in VB.NET) otherwise
Methods
Add(RadCommandBarBaseItem)
Adds a RadItem with the specified value to the Telerik.WinControls.RadItemCollection .
Declaration
public int Add(RadCommandBarBaseItem value)
Parameters
value
The RadItem to add.
Returns
The index at which the new element was inserted.
AddRange(RadCommandBarBaseItemCollection)
Adds the contents of another RadItemCollection to the end of the collection.
Declaration
public void AddRange(RadCommandBarBaseItemCollection value)
Parameters
value
RadCommandBarBaseItemCollection
A RadItemCollection containing the objects to add to the collection.
AddRange(params RadCommandBarBaseItem[])
Copies the elements of an array to the end of the RadItemCollection.
Declaration
public void AddRange(params RadCommandBarBaseItem[] value)
Parameters
value
An array of type RadItem containing the objects to add to the collection.
AdjustNewItem()
Declaration
public void AdjustNewItem()
Contains(RadCommandBarBaseItem)
Gets a value indicating whether the RadItemCollection contains the specified RadItem.
CopyTo(RadCommandBarBaseItem[], int)
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(RadCommandBarBaseItem[] array, int index)
Parameters
array
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 RadCommandBarBaseItemCollection.RadCommandBarBaseItemEnumerator GetEnumerator()
Returns
RadCommandBarBaseItemCollection.RadCommandBarBaseItemEnumerator
None.
IndexOf(RadCommandBarBaseItem)
Returns the index of a RadItem in the RadItemCollection .
Insert(int, RadCommandBarBaseItem)
Inserts a RadItem into the RadItemCollection at the specified index.
Declaration
public void Insert(int index, RadCommandBarBaseItem value)
Parameters
index
The zero-based index where value should be inserted.
value
The RadItem to insert.
OnClear()
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnItemsChanged(RadCommandBarBaseItem, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(RadCommandBarBaseItem target, ItemsChangeOperation operation)
Parameters
target
operation
OnSort()
Declaration
protected virtual void OnSort()
OnSortComplete()
Declaration
protected 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()
ToArray()
Retrieves an array of the items in the collection.
Declaration
public RadCommandBarBaseItem[] ToArray()
Returns
Events
ItemsChanged
Fires when item is changed.
Declaration
public event RadCommandBarBaseItemCollectionItemChangedDelegate ItemsChanged
Event Value