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

Provides a read-only list view of the groups in a table element's current grouped view.

Mutation members are part of IList<T> but are not implemented and throw NotImplementedException.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridGroupItemCollection : IEnumerable

Inheritance: objectPropertyGridGroupItemCollection

Implements: IEnumerable

Constructors

Creates a group-item view over the specified table element's current groups.

C#
public PropertyGridGroupItemCollection(PropertyGridTableElement tableElement)
Parameters:tableElementPropertyGridTableElement

The table element whose group view is exposed.

Properties

Gets the number of groups in the current view.

C#
public int Count { get; }

Gets a value indicating that this group view does not support mutation.

C#
public bool IsReadOnly { get; }

Gets the group header at the specified index.

C#
public PropertyGridGroupItem this[int index] { get; set; }
Parameters:indexint

The zero-based group index.

Property Value:

The group item at that position.

Exceptions: NotImplementedException

Setting the indexed item is not supported.

Finds the first group item whose Name matches the specified name.

C#
public PropertyGridGroupItem this[string name] { get; }
Parameters:namestring

The group name to find.

Property Value:

The first matching group item, or null if no group has that name.

Methods

Is not implemented; adding a group item throws NotImplementedException.

C#
public void Add(PropertyGridGroupItem item)
Parameters:itemPropertyGridGroupItem

The group item to add.

Exceptions: NotImplementedException

This collection does not support adding items.

Is not implemented; clearing this view throws NotImplementedException.

C#
public void Clear()
Exceptions: NotImplementedException

This collection does not support clearing.

Determines whether the current group view contains the specified group item.

C#
public bool Contains(PropertyGridGroupItem item)
Parameters:itemPropertyGridGroupItem

The group item to find.

Returns:

bool

true if the item's group is present; otherwise, false.

Is not implemented; copying this view throws NotImplementedException.

C#
public void CopyTo(PropertyGridGroupItem[] array, int arrayIndex)
Parameters:arrayPropertyGridGroupItem[]

The destination array.

arrayIndexint

The destination index.

Exceptions: NotImplementedException

Copying is not supported.

Returns an enumerator over the current group items.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator for this view.

Implements: IEnumerable.GetEnumerator()

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

C#
public int IndexOf(PropertyGridGroupItem item)
Parameters:itemPropertyGridGroupItem

The group item to locate.

Returns:

int

The group's zero-based index, or -1 if the group is not present.

Is not implemented; inserting into this view throws NotImplementedException.

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

The insertion index.

itemPropertyGridGroupItem

The group item to insert.

Exceptions: NotImplementedException

This collection does not support insertion.

Is not implemented; removing a group item throws NotImplementedException.

C#
public bool Remove(PropertyGridGroupItem item)
Parameters:itemPropertyGridGroupItem

The group 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 group item to remove.

Exceptions: NotImplementedException

This collection does not support removal.