Back to Devexpress

SchedulerViewBase.Type Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase-f01c0989.md

latest4.3 KB
Original Source

SchedulerViewBase.Type Property

Gets the View’s type.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
public abstract SchedulerViewType Type { get; }
vb
<Browsable(False)>
Public MustOverride ReadOnly Property Type As SchedulerViewType

Property Value

TypeDescription
SchedulerViewType

One of the SchedulerViewType enumeration’s values that specifies the View’s type.

|

Available values:

NameDescription
Day

Specifies the DayView. This view lets end-users schedule and view appointments by day.

| | Week |

Specifies the WeekView. This view lets end-users schedule and view appointments by week in a compact form.

| | Month |

Specifies the MonthView. This view lets end-users schedule and view appointments across several weeks.

| | WorkWeek |

Specifies the WorkWeekView. This view displays appointments for the working days in a particular week.

| | Timeline |

Specifies the TimelineView. This view displays appointments as horizontal bars along the timescales , and provides end-users with a clearer overview for scheduling purposes.

| | Gantt |

Specifies the GanttView. This view lets end-users schedule and view appointments as tasks with dependencies and show information on task completion status.

| | FullWeek |

Specifies the FullWeekView. This view allows end-users to schedule and view appointments by the entire week.

| | Agenda |

Specifies the AgendaView. This view allows end-users to list appointments by day.

| | Year |

Specifies the YearView. This view displays appointments for the entire year.

|

Remarks

Descendants of the SchedulerViewBase class override this abstract property to return an appropriate View type.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-hit-testing/CS/HitTest/Form1.cs#L49

csharp
}
else if (scheduler.ActiveView.Type == SchedulerViewType.Day && hitInfo.HitTest == SchedulerHitTest.Cell)
{

winforms-scheduler-hit-testing/VB/HitTest/Form1.vb#L46

vb
Text = apt.Subject
ElseIf scheduler.ActiveView.Type = SchedulerViewType.Day AndAlso hitInfo.HitTest = SchedulerHitTest.Cell Then
    Dim diff As Integer = pos.Y - hitInfo.ViewInfo.Bounds.Y

See Also

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.XtraScheduler Namespace