# Grasshopper2.Data.Rules namespace

Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

## Interfaces

- [IRule](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.irule.md): Interface for individual pattern rules.

## Classes

- [RuleAnyNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.ruleanynumber.md): Represents a wildcard rule for any integer.
- [RuleAnyNumbers](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.ruleanynumbers.md): Represents a wildcard rule for any number of integers.
- [RuleChain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulechain.md): Represents a rule that combines other rules.
- [RuleGroup](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulegroup.md): Represents a rule that tests for a collection of integers.
- [RuleNegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulenegate.md): Represents a rule that negates another rule.
- [RuleNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulenumber.md): Represents a rule that tests for a single integer.
- [RuleRange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulerange.md): Represents a rule that tests for a range of integers.
- [RuleSequence](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.rulesequence.md): Represents a rule that tests for a sequence (or series) of integers.
- [SiteRule](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.siterule.md): Represents a rule for matching tree sites.

## Enums

- [RuleOperator](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.rules.ruleoperator.md): Enumerate the possible ways rules can be strung together.
