'宣言 Public Overloads Function IsEnabled( _ ByVal eventid As UltraMonthViewSingleEventIds _ ) As Boolean
public bool IsEnabled( UltraMonthViewSingleEventIds eventid )
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle Private Sub DisableScrollEvents() ' BeforeScroll イベントが有効な場合、無効にします If (Me.ultraMonthViewSingle1.EventManager.IsEnabled(UltraMonthViewSingleEventIds.BeforeScroll)) Then Me.ultraMonthViewSingle1.EventManager.SetEnabled(UltraMonthViewSingleEventIds.BeforeScroll, False) End If ' AfterScroll イベントが有効な場合、無効にします If (Me.ultraMonthViewSingle1.EventManager.IsEnabled(UltraMonthViewSingleEventIds.AfterScroll)) Then Me.ultraMonthViewSingle1.EventManager.SetEnabled(UltraMonthViewSingleEventIds.AfterScroll, False) End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewSingle; using System.Diagnostics; private void DisableScrollEvents() { // BeforeScroll イベントが有効な場合、無効にします if ( this.ultraMonthViewSingle1.EventManager.IsEnabled( UltraMonthViewSingleEventIds.BeforeScroll ) ) this.ultraMonthViewSingle1.EventManager.SetEnabled( UltraMonthViewSingleEventIds.BeforeScroll, false ); // AfterScroll イベントが有効な場合、無効にします if ( this.ultraMonthViewSingle1.EventManager.IsEnabled( UltraMonthViewSingleEventIds.AfterScroll ) ) this.ultraMonthViewSingle1.EventManager.SetEnabled( UltraMonthViewSingleEventIds.AfterScroll, false ); }