New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class PropertyGridRootItemsCollection : IEnumerable

Inheritance: objectPropertyGridRootItemsCollection

Implements: IEnumerable

Constructors

Creates a root-item view over the specified table element.

C#
public PropertyGridRootItemsCollection(PropertyGridTableElement tableElement)
Parameters:tableElementPropertyGridTableElement

The table element whose root items are exposed.

Properties

Gets the number of root items in the current view.

C#
public int Count { get; }

Gets the collection's advertised read-only state.

C#
public bool IsReadOnly { get; }
Property Value:

false, although the mutation members currently throw NotImplementedException.

Methods

Is not implemented; adding a root item throws NotImplementedException.

C#
public void Add(PropertyGridItem item)
Parameters:itemPropertyGridItem

The root item to add.

Exceptions: NotImplementedException

This collection does not support adding items.

Is not implemented; clearing the root-item view throws NotImplementedException.

C#
public void Clear()
Exceptions: NotImplementedException

This collection does not support clearing.

Determines whether the current view contains the specified root item.

C#
public bool Contains(PropertyGridItem item)
Parameters:itemPropertyGridItem

The root item to find.

Returns:

bool

true if the item is in the current view; otherwise, false.

Is not implemented; copying the root-item view throws NotImplementedException.

C#
public void CopyTo(PropertyGridItem[] array, int arrayIndex)
Parameters:arrayPropertyGridItem[]

The destination array.

arrayIndexint

The destination index.

Exceptions: NotImplementedException

Copying is not supported.

Returns an enumerator over the current root items.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator for this view.

Implements: IEnumerable.GetEnumerator()

Gets the index of a root item in the current view.

C#
public int IndexOf(PropertyGridItem item)
Parameters:itemPropertyGridItem

The root item to locate.

Returns:

int

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.

C#
public void Insert(int index, PropertyGridItem item)
Parameters:indexint

The insertion index.

itemPropertyGridItem

The item to insert.

Exceptions: NotImplementedException

This collection does not support insertion.

Is not implemented; removing a root item throws NotImplementedException.

C#
public bool Remove(PropertyGridItem item)
Parameters:itemPropertyGridItem

The root item to remove.

Returns:

bool

This method does not return because it throws NotImplementedException.

Exceptions: NotImplementedException

This collection does not support removal.

Is not implemented; removing by index throws NotImplementedException.

C#
public void RemoveAt(int index)
Parameters:indexint

The index of the root item to remove.

Exceptions: NotImplementedException

This collection does not support removal.