ClassRadCommandBarLinesElementCollection
A collection that stores RadItem objects.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCommandBarLinesElementCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseRadCommandBarLinesElementCollection
Implements:
Inherited Members
Constructors
RadCommandBarLinesElementCollection()
Initializes a new instance of the RadItemCollectionBase class.
Declaration
public RadCommandBarLinesElementCollection()
RadCommandBarLinesElementCollection(CommandBarRowElement[])
Initializes a new instance of RadItemCollection containing any array of RadItem objects.
Declaration
public RadCommandBarLinesElementCollection(CommandBarRowElement[] value)
Parameters
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
value
RadCommandBarLinesElementCollection
A RadItemCollection from which the contents are copied.
RadCommandBarLinesElementCollection(RadElement)
Initializes a new instance of RadItemCollection.
Declaration
public RadCommandBarLinesElementCollection(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 CommandBarRowElement 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 CommandBarRowElement this[string itemName] { get; }
Parameters
itemName
item Name
Property Value
RadItem if found, null (Nothing in VB.NET) otherwise
Methods
Add(CommandBarRowElement)
Adds a RadItem with the specified value to the Telerik.WinControls.RadItemCollection .
Declaration
public int Add(CommandBarRowElement value)
Parameters
value
The RadItem to add.
Returns
The index at which the new element was inserted.
AddRange(RadCommandBarLinesElementCollection)
Adds the contents of another RadItemCollection to the end of the collection.
Declaration
public void AddRange(RadCommandBarLinesElementCollection value)
Parameters
value
RadCommandBarLinesElementCollection
A RadItemCollection containing the objects to add to the collection.
AddRange(params CommandBarRowElement[])
Copies the elements of an array to the end of the RadItemCollection.
Declaration
public void AddRange(params CommandBarRowElement[] value)
Parameters
value
An array of type RadItem 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.
CopyTo(CommandBarRowElement[], int)
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(CommandBarRowElement[] 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 RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator GetEnumerator()
Returns
RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator
None.
IndexOf(CommandBarRowElement)
Returns the index of a RadItem in the RadItemCollection .
Insert(int, CommandBarRowElement)
Inserts a RadItem into the RadItemCollection at the specified index.
Declaration
public void Insert(int index, CommandBarRowElement 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(CommandBarRowElement, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(CommandBarRowElement 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 CommandBarRowElement[] ToArray()
Returns
Events
ItemsChanged
Fires when item is changed.
Declaration
public event RadCommandBarLinesElementCollectionItemChangedDelegate ItemsChanged
Event Value