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

Represents a data group and owns the corresponding expandable PropertyGrid group item.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridGroup : DataItemGroup<PropertyGridItem>, IReadOnlyCollection<PropertyGridItem>, IEnumerable

Inheritance: objectGroup<PropertyGridItem>DataItemGroup<PropertyGridItem>PropertyGridGroup

Implements: IEnumerableIReadOnlyCollection<PropertyGridItem>

Inherited Members DataItemGroup<PropertyGridItem>.GroupsDataItemGroup<PropertyGridItem>.CacheGroup<PropertyGridItem>.Contains(PropertyGridItem)Group<PropertyGridItem>.IndexOf(PropertyGridItem)Group<PropertyGridItem>.Evaluate(string)Group<PropertyGridItem>.GetEnumerator()Group<PropertyGridItem>.CopyTo(PropertyGridItem[], int)Group<PropertyGridItem>.LevelGroup<PropertyGridItem>.HeaderGroup<PropertyGridItem>.KeyGroup<PropertyGridItem>.ItemCountGroup<PropertyGridItem>.this[int]Group<PropertyGridItem>.Parent...

Constructors

Creates a group and initializes its group item from the table element's auto-expand setting.

C#
public PropertyGridGroup(object key, Group<PropertyGridItem> parent, PropertyGridTableElement propertyGridElement)
Parameters:keyobject

The key identifying this group.

parentGroup<PropertyGridItem>

The parent group, or null for a top-level group.

propertyGridElementPropertyGridTableElement

The table element that supplies the group item and initial expanded state.

Properties

Gets the group item.

C#
public PropertyGridGroupItem GroupItem { get; }
Property Value:

The group item.

Gets the expanded state of the group.

C#
public bool IsExpanded { get; }

Gets the group's property items, creating the backing list on first access.

C#
protected override IList<PropertyGridItem> Items { get; }

Overrides: DataItemGroup<PropertyGridItem>.Items

Methods

Collapses this instance.

C#
public void Collapse()

Expands this instance.

C#
public void Expand()