Provides list-style access to the root property items in a table element's current view.
Lookup and enumeration read from the current view. Although IsReadOnly returns false, the collection's mutation members are not implemented and throw NotImplementedException.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridRootItemsCollection : IEnumerable
Inheritance: objectPropertyGridRootItemsCollection
Implements:
Constructors
Creates a root-item view over the specified table element.
public PropertyGridRootItemsCollection(PropertyGridTableElement tableElement)
The table element whose root items are exposed.
Properties
Gets the collection's advertised read-only state.
public bool IsReadOnly { get; }
false, although the mutation members currently throw NotImplementedException.
Methods
Is not implemented; adding a root item throws NotImplementedException.
public void Add(PropertyGridItem item)
The root item to add.
Exceptions: NotImplementedExceptionThis collection does not support adding items.
Is not implemented; clearing the root-item view throws NotImplementedException.
public void Clear()
This collection does not support clearing.
Determines whether the current view contains the specified root item.
public bool Contains(PropertyGridItem item)
The root item to find.
Returns:Is not implemented; copying the root-item view throws NotImplementedException.
public void CopyTo(PropertyGridItem[] array, int arrayIndex)
The destination array.
arrayIndexintThe destination index.
Exceptions: NotImplementedExceptionCopying is not supported.
Returns an enumerator over the current root items.
Gets the index of a root item in the current view.
public int IndexOf(PropertyGridItem item)
The root item to locate.
Returns:The item's zero-based index, or -1 if it is not in the current view.
Is not implemented; inserting into the root-item view throws NotImplementedException.
public void Insert(int index, PropertyGridItem item)
The insertion index.
itemPropertyGridItemThe item to insert.
Exceptions: NotImplementedExceptionThis collection does not support insertion.
Is not implemented; removing a root item throws NotImplementedException.
public bool Remove(PropertyGridItem item)
The root item to remove.
Returns:This method does not return because it throws NotImplementedException.
Exceptions: NotImplementedExceptionThis collection does not support removal.
Is not implemented; removing by index throws NotImplementedException.
public void RemoveAt(int index)
The index of the root item to remove.
Exceptions: NotImplementedExceptionThis collection does not support removal.