Table of Contents

Class NumericUpDown<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Enables the user to increase or decrease a value with the mouse or keyboard.

public class NumericUpDown<T> : View, IDisposable, ISupportInitializeNotification, ISupportInitialize where T : notnull

Type Parameters

T
Inheritance
NumericUpDown<T>
Implements
Derived
Inherited Members

Remarks

Supports the following types: int, long, double, double, decimal. Attempting to use any other type will result in an InvalidOperationException.

Constructors

NumericUpDown()

Initializes a new instance of the NumericUpDown<T> class.

Properties

Format

Gets or sets the format string used to display the value. The default is "{0}".

Increment
Value

Gets or sets the value that will be incremented or decremented.

Methods

OnDrawingText()

Called when the Text of the View is to be drawn.

Events

FormatChanged

Raised when Format has changed.

IncrementChanged

Raised when Increment has changed.

ValueChanged

Raised when the value has changed.

ValueChanging

Raised when the value is about to change. Set CancelEventArgs<T>.Cancel to true to prevent the change.