# GH_Grip class

Namespace: [Grasshopper.GUI.Gradient](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.gradient.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_Grip : IComparable<GH_Grip>, GH_ISerializable
```

Represents a grip in a gradient. A grip defines both where and how the colour of a gradient changes.

## Constructors

- [GH_Grip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/ctor.md): (4 overloads)

## Properties

- [ColourLeft](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/colourleft.md): Gets the colour to the left of this grip.
- [ColourRight](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/colourright.md): Gets the colour to the right of this grip.
- [GripId](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/gripid.md): Gets the Grip ID.
- [IsValid](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/isvalid.md): Gets whether this grip is valid. A valid grip must have a non-empty Id and a non-NaN parameter.
- [Parameter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/parameter.md): Gets or sets the numeric parameter of the grip.
- [Selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/selected.md): Gets or sets whether this grip is selected. Selection state is not (de)serialized.
- [Type](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/type.md): Gets whether the colour across this grip is smooth.

## Methods

- [Blend](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/blend.md): (static)
- [CompareTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/compareto.md)
- [MutateId](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/mutateid.md): Create a new grip ID.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/read.md)
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gradient.gh-grip/write.md)
