Ribbon for WinForms
数値ボックス
要素 > リボンアイテム > 数値ボックス

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.

The Numeric Box can be added at design-time using the Floating Toolbar or Collection Editor. Refer this topic for detailed information. A NumericBox can also be added to the C1Ribbon control through the code using the RibbonNumericBox class. This is depicted in the code below:

' リボン項目の数値ボックスを追加します
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)
// リボン項目の数値ボックスを追加します
RibbonNumericBox numericBox = new RibbonNumericBox();
numericBox.Maximum = 10;
numericBox.Minimum = 5;
numericBox.ToolTip = "Select a number";
numericBox.Label = "Number Box";
formatGroup.Items.Add(numericBox);