Class IntPicker
This class represents a label with plus and minus buttons which allow users to increment and decrement an integer value.
public class IntPicker : TextBoxAndButton, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
IntPicker
- Implements
- Derived
Constructors
- IntPicker()
Initializes a new instance of the IntPicker class.
- IntPicker(Control)
Initializes a new instance of the IntPicker class.
Fields
- DefaultUseCharValidator
Gets or sets whether to use char validator to limit unwanted chars in the input. Default is False.
Properties
- LargeChange
Gets or sets a value to be added to or subtracted from the Value property when the plus/minus buttons are pressed while holding Ctrl key.
- Maximum
Gets or sets the maximum allowed value for the control.
- Minimum
Gets or sets the minimum allowed value for the control.
- SmallChange
Gets or sets the value added to or subtracted from the Value property when the plus/minus buttons are pressed.
- Value
Gets or sets the value assigned to control.
Methods
- CoerceValue(int)
Coerces value to fit in the allowed bounds.
- IncrementValue(int)
Increments or decrements value.
- MainControlTextChanged()
Called when text is changed in the main child control.
- OnButtonClick(ControlAndButtonClickEventArgs)
Called when button is clicked.
- OnLostFocus(EventArgs)
This method is invoked when the control lost focus.
- OnMaximumChanged(EventArgs)
Called when the maximum of the Maximum property changes.
- OnMinimumChanged(EventArgs)
Called when the minimum of the Minimum property changes.
- OnValueChanged(EventArgs)
Called when the value of the Value property changes.
- RaiseMaximumChanged(EventArgs)
Raises the MaximumChanged event and calls OnMaximumChanged(EventArgs).
- RaiseMinimumChanged(EventArgs)
Raises the MinimumChanged event and calls OnMinimumChanged(EventArgs).
- RaiseValueChanged(EventArgs)
Raises the ValueChanged event and calls OnValueChanged(EventArgs).
- UpdateButtonsEnabled()
Updates the enabled state of the plus and minus buttons.
- UpdateErrorText()
Sets appropriate error text using Minimum, Maximum and other properties.
- UpdateValueFromText()
Updates Value with text entered in the inner TextBox control.
Events
- LargeChangeChanged
Occurs when the value of the LargeChange property changes.
- MaximumChanged
Occurs when the value of the Maximum property changes.
- MinimumChanged
Occurs when the value of the Minimum property changes.
- SmallChangeChanged
Occurs when the value of the SmallChange property changes.
- ValueChanged
Occurs when the Value property has been changed in some way.