
## Rule class

Represents a single validation rule in a diagram validation rule set.



The Rule type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [Rule()](/diagram/python-net/aspose.diagram/rule/__init__/#) | Constructor. |


### Properties
| Property | Description |
| :- | :- |
| [rule_filter](/diagram/python-net/aspose.diagram/rule/rule_filter) | Specifies the logical expression that determines whether the validation rule should be applied to a target object. |
| [rule_test](/diagram/python-net/aspose.diagram/rule/rule_test) | Specifies the logical expression that determines whether the target object satisfies the validation rule |
| [id](/diagram/python-net/aspose.diagram/rule/id) | Specifies the unique identifier of the validation rule. |
| [name_u](/diagram/python-net/aspose.diagram/rule/name_u) | Specifies the universal name of the validation rule. |
| [category](/diagram/python-net/aspose.diagram/rule/category) | Specifies the text displayed in the Category column of the Issues window. Default is an empty string. |
| [description](/diagram/python-net/aspose.diagram/rule/description) | the description of the validation rule that appears in the user interface. Default is "Unknown". |
| [rule_target](/diagram/python-net/aspose.diagram/rule/rule_target) | Specifies the type of object to which the validation rule applies. |
| [ignored](/diagram/python-net/aspose.diagram/rule/ignored) | Specifies whether the validation rule is currently ignored. Default is False. |


### See Also

* module [aspose.diagram](../)
