Version

SpinIncrement Property

Specifies the amount by which to increase or decrease the value of the editor when up or down spin button is clicked.
Syntax
'Declaration
 
Public Property SpinIncrement As Object
public object SpinIncrement {get; set;}
Remarks

SpinIncrement property specifies the amount by which the value of the editor will be increased or decreased when up or down spin button is clicked, respectively.

The amount one specifies depends on the type of values that the editor edits. When the editor is used for numeric values then the spin increment amount can be specified as a numeric value in the form of any numeric type (for example 5, 10.5 etc...), as long as the type can be converted to match the editor's System.ValueType. A special string vlaue of "log" is supported for numeric types where the editor's value is incremented in an accelerated fashion when the mouse button is held pressed over the spin button for a certain amount of time.

When date and time values are being edited, you can specify the amount as a TimeSpan instance or as one of the following tokens.

  • Date will be incremented or decrement by 1 day. You can specify a different integer value for the number of days, for example "10d".
  • Depending on the mask type, date or time will be incremented or decrement by 1 month or 1 minute. If the mask is a date mask, month will be affected. If the mask is a time mask, minute will be affect. You can specify a different integer value for the number of months or minutes, for example "2m".
  • Date will be incremented or decrement by 1 year. You can specify a different integer value for the number of years, for example "2y".
  • Time will be incremented or decrement by 1 hour. You can specify a different integer value for the number of hours, for example "2h".
  • Time will be incremented or decrement by 1 second. You can specify a different integer value for the number of hours, for example "2s".

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also