'Declaration Public Overloads Overridable Function PerformAction( _ ByVal actionCode As MonthViewMultiAction _ ) As Boolean
public virtual bool PerformAction( MonthViewMultiAction actionCode )
Note: Certain actions contain special key requirements; for example, an action might require that the CTRL key is pressed. This requirement is stipulated through the associated Infragistics.Win.UltraWinSchedule.MonthViewMulti.KeyActionMapping object's SpecialKeysRequired property. Actions that contain special key requirements will not be performed successfully if the respective key is not pressed. To perform these actions, use the control's PerformKeyAction method, which allows simulation of the pressing of the CTRL and SHIFT keys via the 'control' and 'shift' parameters.
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