# RuleArgument 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-cda9-47e1-b803-e439a608e58b")]
public sealed class RuleArgument : IEquatable<RuleArgument>, IStorable
```

Rule argument. Used for instructions like [RuleCommand.Tint](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.rulecommand.md) to specify *what* colour ought to be assigned. Arguments are sometimes optional and sometimes not even allowed (for example with [RuleCommand.Show](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.rulecommand.md) instructions). In rule notation, arguments are always written last, following a " -> " substring.

## Constructors

- [RuleArgument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/ctor.md)

## Properties

- [Code](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/code.md): Gets the original text from which this argument is constructed
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/empty.md): (static)
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/type.md): Gets the kind of argument.
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/value.md): The value. The type of this object depends on [RuleArgument.Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/type.md).

## Methods

- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/equals.md): (2 overloads)
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/gethashcode.md)
- [IStorable.Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/grasshopperio-istorable-store.md)
- [Parse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/parse.md): (2 overloads, static)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.display.ruleargument/tostring.md)
