# UiInteger class

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

```cs
[IoId("00000000-bd72-4608-94bd-31765e246fee")]
[DebuggerDisplay("{ToStringFull(),nq}")]
public sealed class UiInteger : IComparable<UiInteger>, IEquatable<UiInteger>, IStorable
```

An integer with controllable limits.

## Constructors

- [UiInteger](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/ctor.md): (3 overloads) Create a new limited Ui integer.

## Fields

- [Maximum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/maximum.md): (static) Represents the biggest allowed limit value.

## Properties

- [Lower](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/lower.md): Gets the lower limit for this number.
- [Range](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/range.md): Gets the limit range.
- [Upper](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/upper.md): Gets the upper limit for this number.
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/value.md): Gets the value of this number.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/compareto.md): Compare this number with another. Only the value is taken into consideration.
- [ComputeSensibleLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/computesensiblelimits.md): (static) Compute sensible limits for a value.
- [Decrement](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/decrement.md): Decrement this number by the smallest possible amount.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/equals.md): (3 overloads) Gets whether this number is equal to some other number. Only values are considered in this equality.
- [EqualsFull](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/equalsfull.md): Gets whether this number is equal to some other number. Value, limits and decimals are all taken into consideration.
- [FormatValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/formatvalue.md): Format a value.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/gethashcode.md): Serves as the default hash function.
- [Increment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/increment.md): Increment this number by the smallest possible amount.
- [ModifyLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/modifylimits.md): Change the limits of this number.
- [ModifyValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/modifyvalue.md): Change the value of this number.
- [ProcessValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/processvalue.md): Process a value by both limiting and rounding it.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/store.md): This method is called whenever the instance is required to serialize itself.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/tostring.md): Returns a string that represents the current object.
- [ToStringFull](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/tostringfull.md): Returns a string that represents the current object.
- [TryParse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uiinteger/tryparse.md): (2 overloads, static) Try and parse a string as a UiInteger.
