Version

EnsureVisible Method (UltraMonthViewMulti)

Scrolls the Month into the visible area if it is not currently in view.
Syntax
'Declaration
 
Public Overridable Sub EnsureVisible( _
   ByVal month As Month _
) 
public virtual void EnsureVisible( 
   Month month
)

Parameters

month
Month object to scroll to.
Example
This example scrolls the current month into view if it is not already visible.

Private Sub EnsureCurrentMonthVisible()

    '	Get the current month
    Dim month As Infragistics.Win.UltraWinSchedule.Month
    month = Me.ultraMonthViewMulti1.CalendarInfo.GetMonth(DateTime.Today)

    '	Use the EnsureVisible method to scroll the current month into view
    Me.ultraMonthViewMulti1.EnsureVisible(month)

End Sub
private void EnsureCurrentMonthVisible()
{

	//	Get the current month
	Infragistics.Win.UltraWinSchedule.Month month;
	month = this.ultraMonthViewMulti1.CalendarInfo.GetMonth( DateTime.Today );

	//	Use the EnsureVisible method to scroll the current month into view
	this.ultraMonthViewMulti1.EnsureVisible( month );

}
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