Class RadCommandBarLinesElementCollection
A collection that stores RadItem objects.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCommandBarLinesElementCollection : CollectionBase, IList, ICollection, IEnumerable<CommandBarRowElement>, IEnumerable
Constructors
RadCommandBarLinesElementCollection()
Initializes a new instance of the RadItemCollectionBase class.
Declaration
public RadCommandBarLinesElementCollection()
RadCommandBarLinesElementCollection(RadElement)
Initializes a new instance of RadItemCollection.
Declaration
public RadCommandBarLinesElementCollection(RadElement owner)
Parameters
RadElement
owner
|
RadCommandBarLinesElementCollection(CommandBarRowElement[])
Initializes a new instance of RadItemCollection containing any array of RadItem objects.
Declaration
public RadCommandBarLinesElementCollection(CommandBarRowElement[] value)
Parameters
CommandBarRowElement[]
value
A array of RadItem objects with which to intialize the collection |
RadCommandBarLinesElementCollection(RadCommandBarLinesElementCollection)
Initializes a new instance of RadItemCollection based on another RadItemCollection.
Declaration
public RadCommandBarLinesElementCollection(RadCommandBarLinesElementCollection value)
Parameters
RadCommandBarLinesElementCollection
value
A RadItemCollection from which the contents are copied. |
Properties
DefaultType
Declaration
public virtual Type DefaultType { get; set; }
Property Value
System.Type
|
ExcludedTypes
Gets or sets an array of the excluded items' types for this collection.
Declaration
public virtual Type[] ExcludedTypes { get; set; }
Property Value
System.Type[]
|
First
Item[Int32]
Represents the entry at the specified index of the RadItem.
Declaration
public CommandBarRowElement this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the entry to locate in the collection. |
Property Value
CommandBarRowElement
The entry at the specified index of the collection. |
Exceptions
System.ArgumentOutOfRangeException
|
Item[String]
Gets the first found item, with Name property equal to itemName specified, case-sensitive.
Declaration
public CommandBarRowElement this[string itemName] { get; }
Parameters
System.String
itemName
item Name |
Property Value
CommandBarRowElement
RadItem if found, null (Nothing in VB.NET) otherwise |
ItemTypes
Gets or sets an array of the items' types in the collection.
Declaration
public virtual Type[] ItemTypes { get; set; }
Property Value
System.Type[]
|
Last
Owner
Gets or sets the owner of the collection.
Declaration
public RadElement Owner { get; set; }
Property Value
RadElement
|
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
public virtual Type[] SealedTypes { get; set; }
Property Value
System.Type[]
|
Methods
Add(CommandBarRowElement)
Adds a RadItem with the specified value to the Telerik.WinControls.RadItemCollection .
Declaration
public int Add(CommandBarRowElement value)
Parameters
CommandBarRowElement
value
The RadItem to add. |
Returns
System.Int32
The index at which the new element was inserted. |
AddRange(CommandBarRowElement[])
Copies the elements of an array to the end of the RadItemCollection.
Declaration
public void AddRange(params CommandBarRowElement[] value)
Parameters
CommandBarRowElement[]
value
An array of type RadItem containing the objects to add to the collection. |
AddRange(RadCommandBarLinesElementCollection)
Adds the contents of another RadItemCollection to the end of the collection.
Declaration
public void AddRange(RadCommandBarLinesElementCollection value)
Parameters
RadCommandBarLinesElementCollection
value
A RadItemCollection containing the objects to add to the collection. |
AdjustNewItem()
Declaration
public void AdjustNewItem()
Contains(CommandBarRowElement)
Gets a value indicating whether the RadItemCollection contains the specified RadItem.
Declaration
public bool Contains(CommandBarRowElement value)
Parameters
CommandBarRowElement
value
The RadItem to locate. |
Returns
System.Boolean
true if the RadItem is contained in the collection; otherwise, false. |
CopyTo(CommandBarRowElement[], Int32)
Copies the RadItemCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(CommandBarRowElement[] array, int index)
Parameters
CommandBarRowElement[]
array
The one-dimensional System.Array that is the destination of the values copied from RadItemCollection . |
System.Int32
index
The index in |
Exceptions
System.ArgumentException
-or- The number of elements in the RadItemCollection is greater than the available space between |
System.ArgumentNullException
|
System.ArgumentOutOfRangeException
|
GetEnumerator()
Returns an enumerator that can iterate through the RadItemCollection .
Declaration
public RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator GetEnumerator()
Returns
RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator
None. |
IndexOf(CommandBarRowElement)
Returns the index of a RadItem in the RadItemCollection .
Declaration
public int IndexOf(CommandBarRowElement value)
Parameters
CommandBarRowElement
value
The RadItem to locate. |
Returns
System.Int32
The index of the RadItem of |
Insert(Int32, CommandBarRowElement)
Inserts a RadItem into the RadItemCollection at the specified index.
Declaration
public void Insert(int index, CommandBarRowElement value)
Parameters
System.Int32
index
The zero-based index where |
CommandBarRowElement
value
|
OnClear()
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnInsert(Int32, Object)
Declaration
protected override void OnInsert(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnItemsChanged(CommandBarRowElement, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(CommandBarRowElement target, ItemsChangeOperation operation)
Parameters
CommandBarRowElement
target
|
ItemsChangeOperation
operation
|
OnRemove(Int32, Object)
Declaration
protected override void OnRemove(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnSet(Int32, Object, Object)
Declaration
protected override void OnSet(int index, object oldValue, object newValue)
Parameters
System.Int32
index
|
System.Object
oldValue
|
System.Object
newValue
|
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
System.Int32
index
|
System.Object
oldValue
|
System.Object
newValue
|
Overrides
OnSort()
Declaration
protected virtual void OnSort()
OnSortComplete()
Declaration
protected void OnSortComplete()
OnValidate(Object)
Declaration
protected override void OnValidate(object value)
Parameters
System.Object
value
|
Overrides
Remove(RadItem)
Removes a specific RadItem from the RadItemCollection .
Declaration
public void Remove(RadItem value)
Parameters
RadItem
value
The RadItem to remove from the RadItemCollection . |
Exceptions
System.ArgumentException
|
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
System.Collections.IComparer
comparer
The IComparer implementation to use when comparing elements. |
Sort(Int32, Int32, IComparer)
Sorts the elements in a range of elements in RadElementCollection using the specified comparer.
Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
System.Int32
index
The zero-based starting index of the range to sort. |
System.Int32
count
The length of the range to sort. |
System.Collections.IComparer
comparer
The IComparer implementation to use when comparing elements. |
SuspendNotifications()
Declaration
public void SuspendNotifications()
ToArray()
Retrieves an array of the items in the collection.
Declaration
public CommandBarRowElement[] ToArray()
Returns
CommandBarRowElement[]
|
Events
ItemsChanged
Fires when item is changed.
Declaration
public event RadCommandBarLinesElementCollectionItemChangedDelegate ItemsChanged
Event Type
RadCommandBarLinesElementCollectionItemChangedDelegate
|
Explicit Interface Implementations
IEnumerable<CommandBarRowElement>.GetEnumerator()
Declaration
IEnumerator<CommandBarRowElement> IEnumerable<CommandBarRowElement>.GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<CommandBarRowElement>
|