# GradientMapping struct

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
[IoId("00000000-5bfa-45cd-8428-84036d7b657c")]
public readonly struct GradientMapping : IStorable
```

A numeric mapping into gradient domain parameters.

## Constructors

- [GradientMapping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/ctor.md): (3 overloads) Create a new gradient domain mapping.

## Properties

- [AutoLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/autolower.md): Gets whether the [GradientMapping.WorldLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/worldlower.md) value ought to adjusted to fit a relevant data set. It is up to code dealing with gradients to perform this adjustment.
- [AutoUpper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/autoupper.md): Gets whether the [GradientMapping.WorldLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/worldlower.md) value ought to adjusted to fit a relevant data set. It is up to code dealing with gradients to perform this adjustment.
- [GradientLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/gradientlower.md): Gets the leftmost parameter on the gradient domain.
- [GradientUpper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/gradientupper.md): Gets the rightmost parameter on the gradient domain.
- [HasAutomaticBounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/hasautomaticbounds.md): Gets whether this mapping has automatic lower or upper bounds.
- [IsIdentity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/isidentity.md): Gets whether this mapping represents an identity mapping.
- [WorldLower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/worldlower.md): Gets the world parameter where the gradient start is pinned.
- [WorldUpper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/worldupper.md): Gets the world parameter where the gradient end if pinned.

## Methods

- [AutoUpdate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/autoupdate.md): Update this mapping to automatically stretch to the given limits.
- [InverseMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/inversemap.md): Unmap a gradient parameter.
- [Map](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/map.md): Map a parameter into gradient domain.
- [ParseRange](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/parserange.md): (static) Parse a gradient mapping notation.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/store.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/tostring.md)
- [WithAutomaticLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping/withautomaticlimits.md): Sets the automatic world limits.
