# IGH_Rule interface

Namespace: [Grasshopper.Kernel.Data](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.data.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public interface IGH_Rule
```

Interface for individual pattern elements.

**Derived types:** [GH_RuleAnyNumber](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-ruleanynumber.md), [GH_RuleAnyNumbers](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-ruleanynumbers.md), [GH_RuleComplex](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-rulecomplex.md), [GH_RuleGroup](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-rulegroup.md), [GH_RuleNumber](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-rulenumber.md), [GH_RuleRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-rulerange.md), [GH_RuleSequence](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-rulesequence.md)

## Properties

- [Kind](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.igh-rule/kind.md): Gets the type of rule.
- [Notation](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.igh-rule/notation.md): Gets the string notation (representation) for this rule.

## Methods

- [Apply](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.igh-rule/apply.md): Applies this rule to an integer.
