# DisplayRules class

Namespace: [Grasshopper2.Display](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.display.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-08c9-4c81-9652-f4e3c90c6f06")]
public sealed class DisplayRules : IEquatable<DisplayRules>, IStorable
```

A collection of [DisplayRule](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule.md) where later rules override earlier ones.

## Constructors

- [DisplayRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/ctor.md): (2 overloads)

## Fields

- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/empty.md): (static) Gets empty display rules.

## Properties

- [CitesOtherRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/citesotherrules.md): Gets whether these rules cite another rule set by name.
- [ContainsCurveRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/containscurverules.md): Gets whether at least one of the rules affects the visual properties of curves.
- [ContainsHideRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/containshiderules.md): Gets whether at least one of the rules is a [RuleCommand.Hide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.rulecommand.md) instruction.
- [ContainsPointRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/containspointrules.md): Gets whether at least one of the rules affects the visual properties of points.
- [ContainsShowRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/containsshowrules.md): Gets whether at least one of the rules is a [RuleCommand.Hide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.rulecommand.md) instruction.
- [ContainsTintRules](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/containstintrules.md): Gets whether at least one of the rules affects the visual properties of values.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/count.md): Gets the number of rules in this ruleset.
- [IsBlank](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/isblank.md): Gets whether this ruleset contains either no rules, or only non-functional rules.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/isempty.md): Gets whether this ruleset is empty.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/item.md)

## Methods

- [Compile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/compile.md): Compile this ruleset by inserting the rules of other rulesets at CITE instructions, and by removing all non-functional rules.
- [DoesDash](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doesdash.md): Test whether this rule sets a curve dash pattern for a given value.
- [DoesHide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doeshide.md): Test whether this rule set hides the given value.
- [DoesIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doesicon.md): Test whether this rule sets a point symbol for a given value.
- [DoesSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doessize.md): Test whether this rule sets a point symbol radius for a given value.
- [DoesTint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doestint.md): Test whether this rule set tints the given value.
- [DoesWide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/doeswide.md): Test whether this rule sets a curve thickness for a given value.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/equals.md): (2 overloads) Test for exact equality.
- [EqualsFunctional](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/equalsfunctional.md): Test for functional equality. Comments and other non-functional notation such as whitespace may in fact differ.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/gethashcode.md)
- [IStorable.Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/grasshopperio-istorable-store.md)
- [Parse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/parse.md): (static)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrules/tostring.md)
