'宣言 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 )
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 ); }