# VectorArgument class

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

```cs
[IoId("00000000-A020-4C47-986C-9C1A02173776")]
public sealed class VectorArgument : Argument
```

A two-dimensional vector function argument. Vectors manifest themselves as grips in the function editor.

## Constructors

- [VectorArgument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/ctor.md): (3 overloads) Create a custom vector.

## Properties

- [Flourish](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/flourish.md): Gets the display flourish ofd the grip.
- [Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/location.md): Gets the current value of this vector argument.
- [Motion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/motion.md): Gets or sets the directions in which this grip may be dragged. A child grip follows a motion-locked parent by the parent's actual (constrained) motion, not the raw mouse motion.
- [Selected](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/selected.md): Gets or sets whether the grip is selected.
- [Shape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/shape.md): Gets the display shape of the grip.
- [State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/state.md): Gets the most recent saved state for this vector argument.

## Methods

- [RevertToSavedState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/reverttosavedstate.md): Assign the [VectorArgument.State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/state.md) to the [VectorArgument.Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/location.md).
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/store.md)
- [TryAssignValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/tryassignvalue.md): And and update the current state.
- [UpdateSavedState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/updatesavedstate.md): Assign the [VectorArgument.Location](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/location.md) to the [VectorArgument.State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.vectorargument/state.md).

## Inherited Members

- From [Argument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument.md): [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/id.md), [Index](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/index.md), [IsScalar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/isscalar.md), [IsVector](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/isvector.md), [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/nomen.md), [Parent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/parent.md), [ArgumentChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/argumentchanged.md), [AsScalar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/asscalar.md), [AsVector](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/asvector.md), [OnArgumentChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/onargumentchanged.md), [ToFunction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/tofunction.md), [ToScalar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/toscalar.md), [ToVector](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.graphing.argument/tovector.md)
