'宣言 Public Enum MonthViewMultiAction Inherits System.Enum
public enum MonthViewMultiAction : System.Enum
| メンバ | 解説 |
|---|---|
| CloseMonthPopup | 月ポップアップウィンドウを閉じます。 |
| FirstDayOfMonth | 現在アクティブな月の最初の日に移動します。 |
| FirstDayOfMonthKeepSelection | 現在アクティブな月の最初の日に移動します。 |
| FirstVisibleDay | カレンダーの最初の表示日に移動します。 |
| FirstVisibleDayKeepSelection | カレンダーの最初の表示日に移動します。 |
| FirstVisibleDayOfWeek | 最初の表示曜日に移動します。 |
| FirstVisibleDayOfWeekKeepSelection | 最初の表示曜日に移動します。 |
| LastDayOfMonth | 現在アクティブな月の最後の日に移動します。 |
| LastDayOfMonthKeepSelection | 現在アクティブな月の最後の日に移動します。 |
| LastVisibleDay | カレンダーの最後の表示日に移動します。 |
| LastVisibleDayKeepSelection | カレンダーの最後の表示日に移動します。 |
| LastVisibleDayOfWeek | 最後の表示曜日に移動します。 |
| LastVisibleDayOfWeekKeepSelection | 最後の表示曜日に移動します。 |
| NextControl | 次のコントロールに移動します。 |
| NextDay | 次の日に移動します。 |
| NextDayKeepSelection | 次の日に移動します。 |
| PreviousControl | 前のコントロールに移動します。 |
| PreviousDay | 前の日に移動します。 |
| PreviousDayKeepSelection | 前の日に移動します。 |
| SameDayInNextMonth | 次の月の同じ日。 |
| SameDayInNextMonthKeepSelection | 次の月の同じ日。 |
| SameDayInNextWeek | 次の週の同じ曜日に移動します。 |
| SameDayInNextWeekKeepSelection | 次の週の同じ曜日に移動します。 |
| SameDayInPreviousMonth | 前の月の同じ日。 |
| SameDayInPreviousMonthKeepSelection | 前の月の同じ日。 |
| SameDayInPreviousWeek | 前の週の同じ曜日に移動します。 |
| SameDayInPreviousWeekKeepSelection | 前の週の同じ曜日に移動します。 |
| ScrollNext | 次の月にスクロールします。スクロールボタンをクリックしたときと同じように動作します。 |
| ScrollPrevious | 前の月にスクロールします。スクロールボタンをクリックしたときと同じように動作します。 |
| ToggleDaySelection | アクティブ日を選択または選択解除します。 |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti Private Sub CustomizeKeyActionMappings() ' Create a new KeyActionMapping object, which we will add to ' the control's KeyActionMappings collection. The new KeyActionMapping ' object will have the following property settings: ' ' KeyCode = Tab ' ActionCode = SameDayInNextMonth ' StateDisallowed = None ' StateRequired = ActiveDay ' SpecialKeysDisallowed = All (disallow the action if either Alt, Ctrl, or Shift is pressed) ' SpecialKeysRequired = 0 (no special keys required to perform the action) ' Dim nextMonthMapping As KeyActionMapping = _ New KeyActionMapping(Keys.Tab, MonthViewMultiAction.SameDayInNextMonth, 0, MonthViewMultiState.ActiveDay, SpecialKeys.All, 0) ' Create another new KeyActionMapping object, which we will add to ' the control's KeyActionMappings collection. The new KeyActionMapping ' object will have the following property settings: ' ' KeyCode = Tab ' ActionCode = SameDayInPreviousMonth ' StateDisallowed = None ' StateRequired = ActiveDay ' SpecialKeysDisallowed = AltShift (disallow the action if either Alt or Shift is pressed) ' SpecialKeysRequired = Ctrl ' Dim prevMonthMapping As KeyActionMapping = _ New KeyActionMapping(Keys.Tab, MonthViewMultiAction.SameDayInPreviousMonth, 0, MonthViewMultiState.ActiveDay, SpecialKeys.AltShift, SpecialKeys.Ctrl) ' Remove all KeyActionMappings that use the Tab key Dim keyMapping As KeyActionMapping For Each keyMapping In Me.ultraMonthViewMulti1.KeyActionMappings If (keyMapping.KeyCode = Keys.Tab) Then Me.ultraMonthViewMulti1.KeyActionMappings.Remove(keyMapping) End If Next ' Now we can add the custom mappings Me.ultraMonthViewMulti1.KeyActionMappings.Add(nextMonthMapping) Me.ultraMonthViewMulti1.KeyActionMappings.Add(prevMonthMapping) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewMulti; private void CustomizeKeyActionMappings() { // Create a new KeyActionMapping object, which we will add to // the control's KeyActionMappings collection. The new KeyActionMapping // object will have the following property settings: // // KeyCode = Tab // ActionCode = SameDayInNextMonth // StateDisallowed = None // StateRequired = ActiveDay // SpecialKeysDisallowed = All (disallow the action if either Alt, Ctrl, or Shift is pressed) // SpecialKeysRequired = 0 (no special keys required to perform the action) // KeyActionMapping nextMonthMapping = new KeyActionMapping( Keys.Tab, // KeyCode MonthViewMultiAction.SameDayInNextMonth, // ActionCode 0, // StateDisallowed MonthViewMultiState.ActiveDay, // StateRequired SpecialKeys.All, // SpecialKeysDisallowed 0 // SpecialKeysRequired ); // Create another new KeyActionMapping object, which we will add to // the control's KeyActionMappings collection. The new KeyActionMapping // object will have the following property settings: // // KeyCode = Tab // ActionCode = SameDayInPreviousMonth // StateDisallowed = None // StateRequired = ActiveDay // SpecialKeysDisallowed = AltShift (disallow the action if either Alt or Shift is pressed) // SpecialKeysRequired = Ctrl // KeyActionMapping prevMonthMapping = new KeyActionMapping( Keys.Tab, // KeyCode MonthViewMultiAction.SameDayInPreviousMonth, // ActionCode 0, // StateDisallowed MonthViewMultiState.ActiveDay, // StateRequired SpecialKeys.AltShift, // SpecialKeysDisallowed SpecialKeys.Ctrl // SpecialKeysRequired ); // Remove all KeyActionMappings that use the Tab key foreach( KeyActionMapping keyMapping in this.ultraMonthViewMulti1.KeyActionMappings ) { if ( keyMapping.KeyCode == Keys.Tab ) this.ultraMonthViewMulti1.KeyActionMappings.Remove( keyMapping ); } // Now we can add the custom mappings this.ultraMonthViewMulti1.KeyActionMappings.Add( nextMonthMapping ); this.ultraMonthViewMulti1.KeyActionMappings.Add( prevMonthMapping ); }