
## RuleCollection class

Rule collection.



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



The RuleCollection type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [count](/diagram/python-net/aspose.diagram/rulecollection/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 |
| :- | :- |
| [is_exist(index)](/diagram/python-net/aspose.diagram/rulecollection/is_exist/#int) | Is exist item in the collection. |
| [clear()](/diagram/python-net/aspose.diagram/rulecollection/clear/#) | Removes all elements from collection. |
| [add(rule)](/diagram/python-net/aspose.diagram/rulecollection/add/#Rule) | Add the rule in the collection. |
| [remove(rule)](/diagram/python-net/aspose.diagram/rulecollection/remove/#Rule) | Remove the rule from the collection. |


### See Also

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