Back to Devexpress

DayView.DayCount Property

windowsforms-devexpress-dot-xtrascheduler-dot-dayview-0d26874c.md

latest3.6 KB
Original Source

DayView.DayCount Property

Gets or sets the number of days that are simultaneously displayed within the Day View.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(1)]
[XtraSerializableProperty]
public virtual int DayCount { get; set; }
vb
<DefaultValue(1)>
<XtraSerializableProperty>
Public Overridable Property DayCount As Integer

Property Value

TypeDefaultDescription
Int321

A positive integer value that specifies the number of days displayed by the View.

|

Remarks

Use the DayCount property to specify the number of days simultaneously displayed within the Day View starting from the date set for the SchedulerControl.Start property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DayCount 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-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L32

csharp
schedulerControl1.ActiveViewType = SchedulerViewType.Day;
schedulerControl1.DayView.DayCount = 2;

winforms-scheduler-customize-popup-menu/CS/PopupMenuCustomization/Form1.cs#L24

csharp
MySchedulerHelper.FillResources(schedulerStorage1, 3);
schedulerControl1.Views.DayView.DayCount = 2;
schedulerControl1.Start = DateTime.Now.Date;

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L34

vb
schedulerControl1.ActiveViewType = SchedulerViewType.Day
schedulerControl1.DayView.DayCount = 2

winforms-scheduler-customize-popup-menu/VB/PopupMenuCustomization/Form1.vb#L21

vb
MySchedulerHelper.FillResources(schedulerStorage1, 3)
schedulerControl1.Views.DayView.DayCount = 2
schedulerControl1.Start = Date.Now.Date

See Also

Start

DayView Class

DayView Members

DevExpress.XtraScheduler Namespace