Version

SpinButtonIncrement Property (UltraCalendarCombo)

Determines the unit of change applied to the value when the pressing the spin buttons.
Syntax
'Declaration
 
Public Property SpinButtonIncrement As SpinIncrementUnit
public SpinIncrementUnit SpinButtonIncrement {get; set;}
Remarks

The SpinButtonIncrement determines the units of change applied to the value when a spin button is pressed. The units can be days, weeks, months, and year. The number of these increments that are applied to the value is determined by the SpinButtonIncrementValue.

Note: The Value may still be incremented by the value even when the spin buttons are not visible since by default the up and down arrow keys are interpretted as an increment using the spin buttons when the control is not dropped down.

Example
This example configures the control's spin buttons to increment or decrement the selected date by 1 week.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.CalendarCombo

    Private Sub SetupSpinButtons()

        '	Ensure that the spin buttons are visible
        Me.ultraCalendarCombo1.SpinButtonsVisible = True

        '	Only increment by one unit with each click
        Me.ultraCalendarCombo1.SpinButtonIncrementValue = 1

        '	Make the increment unit weeks
        Me.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Weeks

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.CalendarCombo;

		private void SetupSpinButtons()
		{

			//--------------------------------------------------------------------------------
			//	SpinButtonIncrement
			//	SpinButtonIncrementValue
			//	SpinButtonsVisible
			//
			//	This example configures the control's spin buttons to increment or decrement the 
			//	selected date by 1 week.
			//--------------------------------------------------------------------------------

			//	Ensure that the spin buttons are visible
			this.ultraCalendarCombo1.SpinButtonsVisible = true;

			//	Only increment by one unit with each click
			this.ultraCalendarCombo1.SpinButtonIncrementValue = 1;

			//	Make the increment unit weeks
			this.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Weeks;

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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