
## ShapeCollection class

Collection of Shapes.



**Inheritance:** [ShapeCollection](/diagram/python-net/aspose.diagram/shapecollection) → 
[Collection](/diagram/python-net/aspose.diagram/collection)



The ShapeCollection type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [count](/diagram/python-net/aspose.diagram/shapecollection/count) | Gets the number of elements actually contained in the collection. |



Gets the element at the specified index.
### Indexer
| Name | Description |
| :- | :- |
| [index] |  |


### Methods
| Method | Description |
| :- | :- |
| [get_shape(name)](/diagram/python-net/aspose.diagram/shapecollection/get_shape/#str) | Gets the element at the specified name. |
| [get_shape(id)](/diagram/python-net/aspose.diagram/shapecollection/get_shape/#int) | Gets the element at the specified ID. |
| [get_shape_including_child(name)](/diagram/python-net/aspose.diagram/shapecollection/get_shape_including_child/#str) | Gets the element including it's child shape at the specified name. |
| [get_shape_including_child(id)](/diagram/python-net/aspose.diagram/shapecollection/get_shape_including_child/#int) | Gets the element including it's child shape at the specified id. |
| [is_exist(index)](/diagram/python-net/aspose.diagram/shapecollection/is_exist/#int) | Is exist item in the collection. |
| [clear()](/diagram/python-net/aspose.diagram/shapecollection/clear/#) | Removes all elements from collection. |
| [add(item)](/diagram/python-net/aspose.diagram/shapecollection/add/#Shape) | Add the shape in the collection. |
| [remove(item)](/diagram/python-net/aspose.diagram/shapecollection/remove/#Shape) | Remove the shape from the collection. |
| [remove_depends_on(item)](/diagram/python-net/aspose.diagram/shapecollection/remove_depends_on/#Shape) | Remove the shapes including DEPENDSON shapes from the collection. |
| [un_group(group_shape)](/diagram/python-net/aspose.diagram/shapecollection/un_group/#Shape) | UnGroup the shape. |
| [group(group_items)](/diagram/python-net/aspose.diagram/shapecollection/group/#list) |  |


### See Also

* module [aspose.diagram](../)
* class [Collection](/diagram/python-net/aspose.diagram/collection)
