# GradientChangedEventArgs 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 class GradientChangedEventArgs : EventArgs
```

Arguments used in the GradientChanged event.

## Constructors

- [GradientChangedEventArgs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/ctor.md): Construct a new GradientChangedEventArgs.

## Properties

- [Intermediate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/intermediate.md): Gets whether this event represents an intermediate change.
- [IsSuppressed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/issuppressed.md): Gets whether the change has been supressed. If this property returns true, the new gradient will not be allowed to replace the old gradient.
- [NewGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/newgradient.md): Gets the new gradient.
- [OldGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/oldgradient.md): Gets the gradient prior to the change.

## Methods

- [SuppressChange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs/suppresschange.md): Call this method to suppress the change, in which case the old gradient will be re-instated.
