Parameters
- actionCode
- An enumeration value that determines the user action to be performed.
- shift
- A booean specifies whether the action should be performed as if the shift key is depressed. This mainly affects actions where selection is involved and determines if the existing selection is extended, as it is when the user holds down the shift key and selects a range of rows in a grid.
- control
- A booean specifies whether the action should be performed as if the control key is depressed. This mainly affects actions where selection is involved and determines if the existing selection is maintained, as it is when the user holds down the control key and selects a row in a grid.
Return Value
true if the action completed successfully, false if the action failed.
This example scrolls the previous month into view and activates the first day in that month, without changing the selected state of any dates.
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti
Private Sub ActivateFirstDayInPreviousMonth()
' Use the PerformAction method to scoll the control one month
' into the past
Me.ultraMonthViewMulti1.PerformAction(MonthViewMultiAction.ScrollPrevious)
' Use the PerformKeyAction method to activate the first day in the month
' Note that we use PerformKeyAction because this action requires that the
' Ctrl key be pressed, and the PerformAction method does not support
' simulated pressing of special keys.
Me.ultraMonthViewMulti1.PerformKeyAction(MonthViewMultiAction.FirstDayOfMonth, False, True)
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewMulti;
private void ActivateFirstDayInPreviousMonth()
{
// Use the PerformAction method to scoll the control one month
// into the past
this.ultraMonthViewMulti1.PerformAction( MonthViewMultiAction.ScrollPrevious );
// Use the PerformKeyAction method to activate the first day in the month
// Note that we use PerformKeyAction because this action requires that the
// Ctrl key be pressed, and the PerformAction method does not support
// simulated pressing of special keys.
this.ultraMonthViewMulti1.PerformKeyAction( MonthViewMultiAction.FirstDayOfMonth, false, true );
}
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