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
Initializes an empty row collection.
public RadCommandBarLinesElementCollection()
Initializes a row collection containing the rows from the specified array.
public RadCommandBarLinesElementCollection(CommandBarRowElement[] value)
The rows to add to the collection.
Initializes a row collection containing the rows from another collection.
public RadCommandBarLinesElementCollection(RadCommandBarLinesElementCollection value)
The collection whose rows are copied.
Initializes a collection whose rows are synchronized with the specified element's children.
public RadCommandBarLinesElementCollection(RadElement owner)
The element that owns the collection rows.
Properties
Gets or sets the row type used as the default when creating entries in the collection editor.
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 the first row, or null when the collection is empty.
[Browsable(false)]
public RadItem First { get; }
Gets or sets an array of the items' types in the collection.
public virtual Type[] ItemTypes { get; set; }
Gets the last row, or null when the collection is empty.
[Browsable(false)]
public RadItem Last { get; }
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 CommandBarRowElement 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: ArgumentOutOfRangeExceptionindex 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 CommandBarRowElement 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(CommandBarRowElement value)
The RadItem to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the RadItemCollection.
public void AddRange(params CommandBarRowElement[] value)
An array of type RadItem containing the objects to add to the collection.
Adds the contents of another RadItemCollection to the end of the collection.
public void AddRange(RadCommandBarLinesElementCollection value)
A RadItemCollection containing the objects to add to the collection.
Moves any row marked as the add-new item to the end of the collection without raising change notifications.
public void AdjustNewItem()
Copies the RadItemCollection values to a one-dimensional Array instance at the specified index.
public void CopyTo(CommandBarRowElement[] 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 for the rows in this collection.
public RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator GetEnumerator()
RadCommandBarLinesElementCollection.CommandBarRowElementEnumerator
An enumerator that traverses the collection.
Returns the index of a RadItem in the RadItemCollection .
public int IndexOf(CommandBarRowElement 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, CommandBarRowElement value)
The zero-based index where value should be inserted.
The RadItem to insert.
Reports the start of a clear operation and removes owned rows from the owner's child collection.
protected override void OnClear()
Overrides:
Reports that all rows have been removed.
protected override void OnClearComplete()
Overrides:
Handles row-collection ownership bookkeeping and raises ItemsChanged unless notifications are suspended.
protected virtual void OnItemsChanged(CommandBarRowElement target, ItemsChangeOperation operation)
The affected row, or null for collection-level changes.
operationItemsChangeOperationThe operation being reported.
Adds the replacement row to the owner's child collection if it is not already a child.
Reports that sorting is about to occur.
protected virtual void OnSort()
Notifies the owner element that the row order has changed.
protected void OnSortComplete()
Ensures that inserted values are command-bar rows.
protected override void OnValidate(object value)
The value being validated.
Exceptions: InvalidOperationExceptionvalue is not a CommandBarRowElement.
Overrides:
Removes one notification suspension, if any.
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.
Suppresses ItemsChanged callbacks and row collection-owner updates until the matching call to ResumeNotifications(). Nested calls require a matching resume for each suspension; suppressed changes are not replayed.
public void SuspendNotifications()
Retrieves an array of the items in the collection.
Events
Fires when item is changed.
public event RadCommandBarLinesElementCollectionItemChangedDelegate ItemsChanged