Version

IsEnabled(UltraMonthViewSingleEventIds) Method

Returns true if the event is enabled
Syntax
'Declaration
 
Public Overloads Function IsEnabled( _
   ByVal eventid As UltraMonthViewSingleEventIds _
) As Boolean
public bool IsEnabled( 
   UltraMonthViewSingleEventIds eventid
)

Parameters

eventid
Index of the event to check.

Return Value

true if enabled, otherwise false.
Example
This example checks to determine whether the BeforeScroll and AfterScroll events are enabled and if they are, disables them via the control's EventManager property.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle

    Private Sub DisableScrollEvents()

        '   If the BeforeScroll event is enabled, disable it
        If (Me.ultraMonthViewSingle1.EventManager.IsEnabled(UltraMonthViewSingleEventIds.BeforeScroll)) Then
            Me.ultraMonthViewSingle1.EventManager.SetEnabled(UltraMonthViewSingleEventIds.BeforeScroll, False)
        End If

        '   If the AfterScroll event is enabled, disable it
        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()
		{

			//   If the BeforeScroll event is enabled, disable it
			if ( this.ultraMonthViewSingle1.EventManager.IsEnabled( UltraMonthViewSingleEventIds.BeforeScroll ) )
				this.ultraMonthViewSingle1.EventManager.SetEnabled( UltraMonthViewSingleEventIds.BeforeScroll, false );

			//   If the AfterScroll event is enabled, disable it
			if ( this.ultraMonthViewSingle1.EventManager.IsEnabled( UltraMonthViewSingleEventIds.AfterScroll ) )
				this.ultraMonthViewSingle1.EventManager.SetEnabled( UltraMonthViewSingleEventIds.AfterScroll, false );

		}
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