# IconState class

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

```cs
public sealed class IconState
```

Icon state descriptor. An icon state is basically a numeric value which can change over time, and may affect certain elements of an icon.

## Constructors

- [IconState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/ctor.md): Create a new icon state.

## Properties

- [Maximum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/maximum.md): Gets the state upper bound.
- [Minimum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/minimum.md): Gets the state lower bound.
- [Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/name.md): Gets the name of this state.
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/value.md): Gets the current value of this state.
- [ValueUx](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/valueux.md): Gets the animated value of this state.

## Methods

- [Move](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/move.md): (3 overloads) Move the state to a new value over time.
- [Set](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/set.md): Set the state to a new value immediately.
- [Solve](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/solve.md): (2 overloads) Solve the current state.

## Events

- [Changed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.icon.iconstate/changed.md): This event is raised whenever the state value changes.
