# Numeric Box

This topic covers details about numeric box in C1Ribbon.

## Content

A NumericBox displays a box in which numeric values can be entered. The limits for **Numeric Box** can be set using the Minimum and Maximum properties.

The GIF below depicts a NumericBox with minimum and maximum values of 5 and10 respectively.

![Numeric box](https://cdn.mescius.io/document-site-files/images/5560dc72-88a5-4eeb-a384-981194dfc831/images/numericbox.gif)

### Adding NumericBox at Design-Time

The **Ribbon NumericBox** can be added at design-time using the **Ribbon Group Floating Toolbar** or **RibbonGroup Items Collection Editor**. Also, you can customize the look of the Ribbon Menu using the **Ribbon NumericBox Floating ToolBar** or by editing the properties in the **Properties** Window. For more information about floating toolbars, refer this [topic](/componentone/docs/win/online-ribbon/concepts/designtimesupport/floatingtoolbar).

This image below shows the floating toolbar of NumericBox.

![Floating toolbar](https://cdn.mescius.io/document-site-files/images/5560dc72-88a5-4eeb-a384-981194dfc831/images/nb_ft.png)

### Adding NumericBox via Code

A NumericBox can also be added to the **C1Ribbon** control through the code using the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/docs/win/online-ribbon/\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/docs/win/online-ribbon/\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="RibbonNumericBox" data-popup-theme="ui-tooltip-green qtip-green">RibbonNumericBox</span> class. This is depicted in the code below:

```vbnet
' Add Numeric Box ribbon item
Dim numericBox As RibbonNumericBox = New RibbonNumericBox()
numericBox.Maximum = 10
numericBox.Minimum = 5
numericBox.ToolTip = "Select a number"
numericBox.Label = "Number Box"
formatGroup.Items.Add(numericBox)
```

```csharp
// Add Numeric Box ribbon item
RibbonNumericBox numericBox = new RibbonNumericBox();
numericBox.Maximum = 10;
numericBox.Minimum = 5;
numericBox.ToolTip = "Select a number";
numericBox.Label = "Number Box";
formatGroup.Items.Add(numericBox);
```