# GH_NumericTextBox class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
[DesignerGenerated]
public class GH_NumericTextBox : UserControl, IGH_Embeddable
```

Utility control that improves upon the standard windows numeric text box.

## Fields

- [m_decimals](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-decimals.md)
- [m_lower_limit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-lower-limit.md)
- [m_prefix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-prefix.md)
- [m_scroll_damping](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-scroll-damping.md)
- [m_scroll_increment](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-scroll-increment.md)
- [m_scroll_method](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-scroll-method.md)
- [m_scroll_width](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-scroll-width.md)
- [m_suffix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-suffix.md)
- [m_upper_limit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-upper-limit.md)
- [m_value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/m-value.md)

## Properties

- [Decimals](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/decimals.md): Gets or sets the number of decimals displayed in the scroller.
- [InScrollMode](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/inscrollmode.md)
- [LowerLimit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/lowerlimit.md): Gets or sets the lower limit of the scroll. Adjusting the lower limit will adjust the Value, but not the upper limit.
- [pnlScroll](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/pnlscroll.md)
- [Prefix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/prefix.md): Gets or sets the prefix used during formatting.
- [PreScrollValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/prescrollvalue.md)
- [ScrollDamping](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrolldamping.md): Gets or sets the damping factor of the scroller. By default, each vertical pixel alters the value by increment. Damping allows you to slow the effect of a single pixel.
- [ScrollIncrement](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollincrement.md): Gets or sets the scroll increment. The increment is used when clicking on the scroll button. Also, when the button is in scroll mode, the increment controls the change per vertical pixel.
- [ScrollingHasBegun](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollinghasbegun.md)
- [ScrollingUpwards](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollingupwards.md)
- [ScrollMethod](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollmethod.md)
- [ScrollMouseRelation](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollmouserelation.md)
- [ScrollWidth](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/scrollwidth.md): Gets or sets the width of the scroller button.
- [Suffix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/suffix.md): Gets or sets the suffix used during formatting.
- [txtContent](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/txtcontent.md)
- [UpperLimit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/upperlimit.md): Gets or sets the upper limit of the scroll. Adjusting the upper limit will adjust the Value, but not the lower limit.
- [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/value.md): Gets or sets the current value. The value will be limited to the domain. You should set the domain first, or use the Set() function to set all values at once.

## Methods

- [Dispose](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/dispose.md)
- [FormatNumber](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/formatnumber.md)
- [FormatTextBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/formattextbox.md)
- [LayoutControl](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/layoutcontrol.md)
- [OnValueChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/onvaluechanged.md)
- [ParseString](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/parsestring.md)
- [ParseTextBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/parsetextbox.md)
- [PrepareForCancel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/prepareforcancel.md)
- [PrepareForCommit](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/prepareforcommit.md)
- [RefreshScrollPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/refreshscrollpanel.md)
- [Set](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/set.md): Sets limits and value.
- [SetDefault](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/setdefault.md)
- [TrimPrefix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/trimprefix.md)
- [TrimSuffix](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/trimsuffix.md)

## Events

- [OnScrollEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/onscrollend.md)
- [OnScrollStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/onscrollstart.md)
- [ValueChanged](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numerictextbox/valuechanged.md)
