# GroupTable class

Namespace: [Rhino.DocObjects.Tables](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.tables.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public sealed class GroupTable : RhinoDocCommonTable<Group>, ICollection<Group>
```

Group tables store the list of groups in a Rhino document.

## Properties

- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/componenttype.md)

## Indexers

- [this[]](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/item.md): Conceptually, the group table is an array of groups. The operator[] can be used to get individual groups. A group is either active or deleted and this state is reported by Group.IsDeleted.

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/add.md): (4 overloads) Adds a new empty group to the group table.
- [AddToGroup](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/addtogroup.md): (2 overloads) Adds an object to an existing group.
- [ChangeGroupName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/changegroupname.md): Changes the name of a group.
- [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/delete.md): (2 overloads)
- [Find](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/find.md): (2 overloads) Finds a group with a given name.
- [FindIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/findindex.md): Retrieves a Group object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/findname.md): Finds a group given its name. Returns the instance, rather than the index.
- [FindNameHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/findnamehash.md): Finds a group given its name hash.
- [GroupMembers](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/groupmembers.md): Gets an array of all of the objects in a group.
- [GroupName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/groupname.md): Returns the name of a group.
- [GroupNames](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/groupnames.md): Returns an array of all group names.
- [GroupObjectCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/groupobjectcount.md): Returns the number of objects that are members of a group.
- [Hide](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/hide.md): Hides all objects that are members of a group.
- [IsDeleted](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/isdeleted.md): Verifies a group is deleted.
- [Lock](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/lock.md): Locks all objects that are members of a group.
- [PurgeUnused](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/purgeunused.md): Purges any unused groups.
- [RemapObjects](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/remapobjects.md): (2 overloads) Remaps an enumeration of Rhino objects to new groups.
- [Show](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/show.md): Shows, or unhides, all objects that are members of a group.
- [ICollection<Group>.Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/system-collections-generic-icollection-rhino-docobjects-group-add.md)
- [Undelete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/undelete.md): Undeletes a previously deleted group.
- [Unlock](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.grouptable/unlock.md): Unlocks all objects that are members of a group.

## Inherited Members

- From [RhinoDocCommonTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1.md): [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1/document.md)
- From [CommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1.md): [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/count.md), [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/clear.md), [FindId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/findid.md), [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/getenumerator.md)
