Version

PerformKeyAction Method (UltraMonthViewMulti)

Performs a specific key action
Syntax
'Declaration
 
Public Overridable Function PerformKeyAction( _
   ByVal actionCode As MonthViewMultiAction, _
   ByVal shift As Boolean, _
   ByVal control As Boolean _
) As Boolean
public virtual bool PerformKeyAction( 
   MonthViewMultiAction actionCode,
   bool shift,
   bool control
)

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.
Example
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 );

		}
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