A collection that stores RadItem objects.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CommandBarStripElementCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseCommandBarStripElementCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadItemCollectionBase class.
public CommandBarStripElementCollection()
Initializes a new instance of RadItemCollection containing any array of RadItem objects.
public CommandBarStripElementCollection(CommandBarStripElement[] value)
A array of RadItem objects with which to intialize the collection
Initializes a new instance of RadItemCollection based on another RadItemCollection.
public CommandBarStripElementCollection(CommandBarStripElementCollection value)
A RadItemCollection from which the contents are copied.
Initializes a new instance of RadItemCollection.
Properties
public virtual Type DefaultType { get; set; }
Gets or sets an array of the excluded items' types for this collection.
[Browsable(false)]
public virtual Type[] ExcludedTypes { get; set; }
Gets or sets an array of the items' types in the collection.
public virtual Type[] ItemTypes { get; set; }
Gets or sets the owner of the collection.
public RadElement Owner { get; set; }
Gets or sets an array of the sealed items' types for this collection. That are types that are allowed but not their descendants.
[Browsable(false)]
public virtual Type[] SealedTypes { get; set; }
Represents the entry at the specified index of the RadItem.
public CommandBarStripElement this[int index] { get; set; }
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.
Gets the first found item, with Name property equal to itemName specified, case-sensitive.
public CommandBarStripElement this[string itemName] { get; }
item Name
Property Value:RadItem if found, null (Nothing in VB.NET) otherwise
Methods
Adds a RadItem with the specified value to the Telerik.WinControls.RadItemCollection .
public int Add(CommandBarStripElement value)
The RadItem to add.
Returns:The index at which the new element was inserted.
Adds the contents of another RadItemCollection to the end of the collection.
public void AddRange(CommandBarStripElementCollection value)
A RadItemCollection containing the objects to add to the collection.
Copies the elements of an array to the end of the RadItemCollection.
public void AddRange(params CommandBarStripElement[] value)
An array of type RadItem containing the objects to add to the collection.
public void AdjustNewItem()
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
public void CopyTo(CommandBarStripElement[] array, int index)
The one-dimensional Array that is the destination of the values copied from RadItemCollection .
indexintThe index in array where copying begins.
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.
Returns an enumerator that can iterate through the RadItemCollection .
public CommandBarStripElementCollection.CommandBarStripElementEnumerator GetEnumerator()
CommandBarStripElementCollection.CommandBarStripElementEnumerator
None.
Returns the index of a RadItem in the RadItemCollection .
public int IndexOf(CommandBarStripElement value)
The RadItem to locate.
Returns:The index of the RadItem of value in the
RadItemCollection, if found; otherwise, -1.
Inserts a RadItem into the RadItemCollection at the specified index.
public void Insert(int index, CommandBarStripElement value)
The zero-based index where value should be inserted.
The RadItem to insert.
protected override void OnClear()
Overrides:
protected override void OnClearComplete()
Overrides:
protected virtual void OnItemsChanged(CommandBarStripElement target, ItemsChangeOperation operation)
protected virtual void OnSort()
protected void OnSortComplete()
public void ResumeNotifications()
Sorts the elements in the entire RadElementCollection using the IComparable implementation of each element.
public void Sort()
Sorts the elements in the entire RadElementCollection using the specified comparer.
public void Sort(IComparer comparer)
The IComparer implementation to use when comparing elements.
Sorts the elements in a range of elements in RadElementCollection using the specified comparer.
public void SuspendNotifications()
Retrieves an array of the items in the collection.
Events
Fires when item is changed.
public event CommandBarStripElementCollectionItemChangedDelegate ItemsChanged