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

Creates PropertyGrid groups and their specialized group collections for a table element.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridGroupFactory : IGroupFactory<PropertyGridItem>

Inheritance: objectPropertyGridGroupFactory

Implements: IGroupFactory<PropertyGridItem>

Constructors

Creates a factory that associates generated groups with the specified table element.

C#
public PropertyGridGroupFactory(PropertyGridTableElement propertyGridElement)
Parameters:propertyGridElementPropertyGridTableElement

The table element that owns the generated groups.

Methods

Wraps the supplied groups in a PropertyGridGroupCollection.

C#
public GroupCollection<PropertyGridItem> CreateCollection(IList<Group<PropertyGridItem>> list)
Parameters:listIList<Group<PropertyGridItem>>

The backing list of groups.

Returns:

GroupCollection<PropertyGridItem>

The specialized PropertyGrid group collection.

Implements: IGroupFactory<PropertyGridItem>.CreateCollection(IList<Group<PropertyGridItem>>)

Creates a PropertyGrid group whose group item uses the table element's auto-expand setting.

C#
public Group<PropertyGridItem> CreateGroup(object key, Group<PropertyGridItem> parent, params object[] metaData)
Parameters:keyobject

The key identifying the group.

parentGroup<PropertyGridItem>

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

metaDataobject[]

Additional metadata; this factory does not use it.

Returns:

Group<PropertyGridItem>

The created PropertyGrid group.

Implements: IGroupFactory<PropertyGridItem>.CreateGroup(object, Group<PropertyGridItem>, params object[])