# DisplayRule 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-afea-4271-aa91-6a1e21360a7f")]
public sealed class DisplayRule : IEquatable<DisplayRule>
```

A single display rule to override the existing display settings.

## Properties

- [Argument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/argument.md): Gets the arguments for this rule.
- [Command](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/command.md): Gets the command for this rule.
- [Filter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/filter.md): Gets the selector filter for this rule.
- [ParseFailure](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/parsefailure.md): Gets the parsing failure (if any) associated with this rule.
- [RuleText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/ruletext.md): Gets the rule text as formatted by the rule semantics.
- [UserText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/usertext.md): Gets the text from which this rule was constructed.

## Methods

- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/equals.md): (2 overloads)
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/gethashcode.md)
- [Parse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/parse.md): (static) Parse a full rule notation.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.displayrule/tostring.md)
