# GripGradientInteraction class

Namespace: [Grasshopper2.Types.Colour](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.colour.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class GripGradientInteraction : IResponsive
```

Interaction object for [GripGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient.md).

## Constructors

- [GripGradientInteraction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/ctor.md): Create a new gradient interaction.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/bounds.md): Gets or sets the bounds rectangle into which this gradient interaction object exists.
- [Control](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/control.md): Gets or sets the control hosting this interaction. Hosts must assign this while the interaction is attached so the responsive can reach floating buttons.
- [ModifiedGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/modifiedgradient.md): Gets the current gradient which contains all modifications to the original one.
- [OriginalGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/originalgradient.md): Gets the original gradient used to construct this interaction object.
- [Parameter0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/parameter0.md): Gets or sets the parameter along the left edge of the bounds rectangle.
- [Parameter1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/parameter1.md): Gets or sets the parameter along the right edge of the bounds rectangle.
- [Responder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/responder.md)
- [SnapSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/snapspace.md): Gets or sets the snapping grid for this interaction.
- [SnapToGrid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/snaptogrid.md): Gets or sets whether this interaction ought to snap to the grid.

## Methods

- [CreateFloatingButtons](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/createfloatingbuttons.md)
- [DrawGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/drawgradient.md): Draw the gradient into the bounds.
- [DrawInterface](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/drawinterface.md): Draw the interface elements into the bounds.
- [RemoveFloatingButtons](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/removefloatingbuttons.md)
- [RespondToWindowSelect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/respondtowindowselect.md)

## Events

- [GradientChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction/gradientchanged.md): Raised whenever the gradient changes outside of the standard mouse event pipeline.
