# FileGroup

The **FileGroup** object exposes information about a file group (when the file display is set to group by a particular column). The [**Tab**](tab)**.filegroups** property returns a collection representing the current file groups in that tab, and the [**Item**](item)**.filegroup** property returns the current file group of a particular item.

Note: If you need to find which _file type group_ a file is part of, rather than how the file is grouping based on currently visible columns, see the [FiletypeGroup](filetypegroup) object instead.

| Property Name      | Return Type                 | Description                                                                                                                                                                                                       |
| ------------------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| _\<default value>_ | _string_                    | Returns the name of the group.                                                                                                                                                                                    |
| collapsed          | _bool_                      | Returns **True** if the group is currently collapsed.                                                                                                                                                             |
| count              | _int_                       | Returns the number of items in this group. Note that groups can be empty; empty groups are not displayed in the file display but will still be returned by the **Tab.filegroups** property.                       |
| id                 | _int_                       | Returns the id number of this group. Id numbers are arbitrary - you shouldn't place any meaning on the actual value, but you can compare the id fields as an easy way to tell if two items are in the same group. |
| members            | _object:_[**Items**](items) | Returns an [**Items**](items) object that represents all the files and folders in this group.                                                                                                                     |
| type               | _string_                    | Returns a string indicating the collation type of the group.                                                                                                                                                      |
