'Declaration Public Enum UltraDayViewState Inherits System.Enum
public enum UltraDayViewState : System.Enum
Member | Description |
---|---|
ActiveOwnerLocked | The UltraDayView.ActiveOwner's Owner.Locked property is true. |
AppointmentInEdit | Appointment being edited |
AppointmentsSelected | Appointments Selected |
AutoAppointmentCreate | The UltraDayView.AutoAppointmentCreate property is set to true. |
AutoAppointmentDialog | The UltraDayView.AutoAppointmentDialog property is set to true. |
CanScrollAllDayEventAreaDown | The all-day event area has one or more rows of activity below the currently viewable area. |
CanScrollAllDayEventAreaUp | The all-day event area has one or more rows of activity above the currently viewable area. |
CanSelectNextActivityByTabKey | Pressing the TAB key will select the next appointment. |
CanSelectPreviousActivityByTabKey | Pressing Shift+TAB will select the previous appointment. |
DraggingAppointments | Dragging Appointments |
Grouping | The UltraDayView.GroupingStyle is not set to NoGrouping. |
NextDayIsInMinMaxRange | The next visible, enabled day (relative to the ActiveDay) is within the range imposed by the MinDate and MaxDate properties. |
PreviousDayIsInMinMaxRange | The previous visible, enabled day (relative to the ActiveDay) is within the range imposed by the MinDate and MaxDate properties. |
ResizingAppointment | Resizing Appointment |
SelectingTimeSlots | Selecting Time Slots |
TabKeyExitsEditMode | Pressing TAB or Shift+TAB exits edit mode on an appointment if one is in edit mode. |
TimeSlotSelected | Time Slot Selected |
VisibleDaySelected | Visible Day Selected |
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); } }
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