Version

UltraDayViewState Enumeration

Bit flags that describe the state of the control.
Syntax
'Declaration
 
Public Enum UltraDayViewState 
   Inherits System.Enum
public enum UltraDayViewState : System.Enum 
Members
MemberDescription
ActiveOwnerLockedThe UltraDayView.ActiveOwner's Owner.Locked property is true.
AppointmentInEditAppointment being edited
AppointmentsSelectedAppointments Selected
AutoAppointmentCreateThe UltraDayView.AutoAppointmentCreate property is set to true.
AutoAppointmentDialogThe UltraDayView.AutoAppointmentDialog property is set to true.
CanScrollAllDayEventAreaDownThe all-day event area has one or more rows of activity below the currently viewable area.
CanScrollAllDayEventAreaUpThe all-day event area has one or more rows of activity above the currently viewable area.
CanSelectNextActivityByTabKeyPressing the TAB key will select the next appointment.
CanSelectPreviousActivityByTabKeyPressing Shift+TAB will select the previous appointment.
DraggingAppointmentsDragging Appointments
GroupingThe UltraDayView.GroupingStyle is not set to NoGrouping.
NextDayIsInMinMaxRangeThe next visible, enabled day (relative to the ActiveDay) is within the range imposed by the MinDate and MaxDate properties.
PreviousDayIsInMinMaxRangeThe previous visible, enabled day (relative to the ActiveDay) is within the range imposed by the MinDate and MaxDate properties.
ResizingAppointmentResizing Appointment
SelectingTimeSlotsSelecting Time Slots
TabKeyExitsEditModePressing TAB or Shift+TAB exits edit mode on an appointment if one is in edit mode.
TimeSlotSelectedTime Slot Selected
VisibleDaySelectedVisible Day Selected
Example
The following code demonstrates how to perform a built-in UltraDayView action in response to a button being clicked. The action to be performed is to select the same time slot in the next day.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

		' Get the current state of the UltraDayView control
		Dim state As UltraDayViewState = Me.UltraDayView1.CurrentState

		' Check the state bit flags to see if a time slot is selected
		If (state And UltraDayViewState.TimeSlotSelected) <> 0 Then

			' Since a time slot is selected, call PerformAction
			' to select the same time slot in the next day.
			Me.UltraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay)
		End If

	End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void button4_Click(object sender, System.EventArgs e)
		{

			// Get the current state of the UltraDayView control
			UltraDayViewState state = this.ultraDayView1.CurrentState;

			// Check the state bit flags to see if a time slot is selected
			if ((state & UltraDayViewState.TimeSlotSelected) != 0)
			{
				// Since a time slot is selected, call PerformAction
				// to select the same time slot in the next day.
				this.ultraDayView1.PerformAction(UltraDayViewAction.SameTimeSlotNextDay);
			}

		}
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