
## MasterCollection class

Master collection.



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



The MasterCollection type exposes the following members:

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



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


### Methods
| Method | Description |
| :- | :- |
| [is_exist(name)](/diagram/python-net/aspose.diagram/mastercollection/is_exist/#str) | Is exist master in the collection. |
| [is_exist(index)](/diagram/python-net/aspose.diagram/mastercollection/is_exist/#int) | Is exist item in the collection. |
| [clear()](/diagram/python-net/aspose.diagram/mastercollection/clear/#) | Removes all elements from collection. |
| [add(master)](/diagram/python-net/aspose.diagram/mastercollection/add/#Master) | Add the Master object in the collection. |
| [remove(master)](/diagram/python-net/aspose.diagram/mastercollection/remove/#Master) | Remove the Master object from the collection. |
| [get_master(id)](/diagram/python-net/aspose.diagram/mastercollection/get_master/#int) | Gets the element at the specified ID. |
| [get_master_by_name(name)](/diagram/python-net/aspose.diagram/mastercollection/get_master_by_name/#str) | Get master by name. |
| [get_max_rel_id()](/diagram/python-net/aspose.diagram/mastercollection/get_max_rel_id/#) | get the max rel id in the collection. |
| [is_exist_rel_id(rel_id)](/diagram/python-net/aspose.diagram/mastercollection/is_exist_rel_id/#str) | Is exist master rel id in the collection. |


### See Also

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