Version

SpinWrap Property

Returns or sets a value indicating whether the control's spin button should wrap its value.
Syntax
'Declaration
 
Public Property SpinWrap As Boolean
public bool SpinWrap {get; set;}
Remarks

If true the spin buttons will wrap the value incremented/decremented based on its Min/Max value.

Example
The UltraCalendarCombor exposes a SpinWrap property that gets/sets a value indicating whether the control's spin button should wrap the value of a spinnable section. If true the spin button will wrap the value incremented/decremented based on its Min/Max value.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

Sub Form1_Load(sender As Object, e As System.EventArgs) '
      
   ' Assign an UltraCalendarInfo to the UltraCalendarCombo's CalendarInfo property
   Me.ultraCalendarCombo1.CalendarInfo = Me.ultraCalendarInfo1
   
   ' Set a minimum and maximum date range
   Me.ultraCalendarInfo1.MinDate = New DateTime(2010, 1, 1)
   Me.ultraCalendarInfo1.MaxDate = New DateTime(2010, 1, 5)
   
   ' Assign an initial value
   Me.ultraCalendarCombo1.Value = New DateTime(2010, 1, 1)
   
   ' Display the Spin Buttons
   Me.ultraCalendarCombo1.SpinButtonsVisible = True
   
   ' Specify spinning for days
   Me.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Days
   Me.ultraCalendarCombo1.SpinButtonIncrementValue = 1
   
   ' Spin Wrap the days 
   Me.ultraCalendarCombo1.SpinWrap = True

End Sub 'Form1_Load
using Infragistics.Win; 
using Infragistics.Win.UltraWinSchedule;        


private void Form1_Load(object sender, System.EventArgs e)
{  
			
    // Assign an UltraCalendarInfo to the UltraCalendarCombo's CalendarInfo property
    this.ultraCalendarCombo1.CalendarInfo = this.ultraCalendarInfo1;

    // Set a minimum and maximum date range
    this.ultraCalendarInfo1.MinDate = new DateTime( 2010, 1, 1 );
    this.ultraCalendarInfo1.MaxDate = new DateTime( 2010, 1, 5 );

    // Assign an initial value
    this.ultraCalendarCombo1.Value = new DateTime( 2010, 1, 1 );
   
    // Display the Spin Buttons
    this.ultraCalendarCombo1.SpinButtonsVisible = true;

    // Specify spinning for days
    this.ultraCalendarCombo1.SpinButtonIncrement = SpinIncrementUnit.Days;
    this.ultraCalendarCombo1.SpinButtonIncrementValue = 1;

    // Spin Wrap the days 
    this.ultraCalendarCombo1.SpinWrap = true;

}
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