[]
        
(Showing Draft Content)

C1.Win.C1InputPanel.InputNumericBox

InputNumericBox Class

Represents a numeric box element in a C1InputPanel control.

Inheritance
InputNumericBox
Namespace: C1.Win.C1InputPanel
Assembly: C1.Win.C1InputPanel.4.8.dll
Syntax
public class InputNumericBox : InputComponent, IBindableComponent, IComponent, IDisposable, IInputXmlSerializable

Constructors

Name Description
InputNumericBox()

Initializes a new instance of an InputNumericBox.

Properties

Name Description
BoundValue

Gets or sets the bound data value associated with this component.

ContextMenuStrip

Gets or sets the context menu strip associated with the numeric box.

CueBanner

Gets or sets the textual cue, or tip, that is displayed by InputNumericBox to prompt the user for information.

CurrencySymbol

Gets or sets the string to use as the currency symbol.

DecimalPlaces

Gets or sets the number of decimal places to display in the InputNumericBox.

DefaultElementWidth

Gets the default width of the InputNumericBox.

DefaultWidth

Gets the default width of the InputNumericBox.

Format

Gets or sets the format of the Value displayed in the InputNumericBox.

Increment

Gets or sets the amount by which the Value property changes when the users presses the up and down keys.

InitialSelection

Gets or sets a value determines the selection position when a control receives input focus.

Maximum

Gets or sets the maximum value accepted by the component.

Minimum

Gets or sets the minimum value accepted by the component.

NegativePattern

Gets or sets the format pattern for negative values. The meaning depends on the StandardFormat.

NotSetVerticalAlign

Gets actual vertical alignment when the VerticalAlign property is equal to NotSet.

NumberFormat

Gets the NumberFormatInfo that is used for data formatting.

OutOfRangeErrorText

Gets or sets the error message that appears if the entered value is out the allowable bounds.

PositivePattern

Gets or sets the format pattern for positive values. The meaning depends on the StandardFormat.

ReadOnly

Gets or sets a value indicating whether the contents of the component can be changed.

ShowSpinButtons

Gets or sets whether the spin buttons should appear in the InputNumericBox.

SpinButtonPressDelay

Gets or sets the interval before the spin buttons start firing click events, in milliseconds.

SpinButtonPressInterval

Gets or sets the interval between clicks when the spin buttons are kept pressed, in milliseconds.

StandardFormat

Sets the standard numeric format.

Text

Gets or sets the text in the InputNumericBox.

TextAlign

Gets or sets how text is aligned in the InputNumericBox.

TextBox

Gets the TextBox control contained in this InputNumericBox.

Value

Gets or sets the current decimal value in the component.

ValueIsNull

Gets or sets whether the current Value is null.

Methods

Name Description
DownButton()

Simulates a click of the down button.

OnFormatChanged(EventArgs)

Raises the FormatChanged event.

OnPrepareNumberFormat(PrepareNumberFormatEventArgs)

Raises the PrepareNumberFormat event.

OnSpinButtonClick(SpinButtonClickEventArgs)

Raises the SpinButtonClick event.

OnValueChanged(EventArgs)

Raises the ValueChanged event.

ResetIncrement()
ResetMaximum()
ResetMinimum()
ResetOutOfRangeErrorText()
ResetValue()
ShouldSerializeIncrement()
ShouldSerializeMaximum()
ShouldSerializeMinimum()
ShouldSerializeOutOfRangeErrorText()
ShouldSerializeStandardFormat()
ShouldSerializeValue()
UpButton()

Simulates a click of the up button.

Events

Name Description
FormatChanged

Fires when the Format property changes.

PrepareNumberFormat

Fires when the NumberFormat property is recreated.

SpinButtonClick

Fires when the up/down buttons are clicked, before their built-in processing.

ValueChanged

Fires when the Value property changes.