# Rules class

Namespace: [Grasshopper2.UI.TabbedPanel](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.tabbedpanel.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Rules : IEquatable<Rules>
```

A collection of [Rule](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rule.md)s.

## Properties

- [All](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/all.md): Enumerate over all rules.
- [CiteCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/citecount.md): Counts the number of citation rules in this set.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/count.md): Gets the number of rules.
- [Effective](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/effective.md): Enumerate over all effective rules (i.e. omitting all comments).
- [EffectiveCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/effectivecount.md): Gets the number of effective rules.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/empty.md): (static) Gets an empty rule set.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/add.md): Add a rule to this collection.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/equals.md)
- [FromString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/fromstring.md): (static) Parse a multiline string for rules.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.rules/tostring.md): Create a multi-line string with one rule per line.
