Back to Devexpress

IRecurrenceInfo.DayNumber Property

corelibraries-devexpress-dot-xtrascheduler-dot-irecurrenceinfo-a7e90ce7.md

latest3.1 KB
Original Source

IRecurrenceInfo.DayNumber Property

Gets or sets the ordinal number of a day within a defined month.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
int DayNumber { get; set; }
vb
Property DayNumber As Integer

Property Value

TypeDescription
Int32

A positive integer value that specifies the day number within a month. The default value is 1.

|

Remarks

If the recurrence pattern is defined on a monthly or yearly time basis (the RecurrenceInfo.Type property is set to the RecurrenceType.Monthly or RecurrenceType.Yearly value), the DayNumber property specifies the number of the day within a month. This is used to calculate the date on which the corresponding appointment will reoccur. The effective values for this property are 1 to 31 inclusive which correspond to the days within a month.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DayNumber 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.

wpf-scheduler-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L161

csharp
apt1.RecurrenceInfo.Start = apt1.Start;
apt1.RecurrenceInfo.DayNumber = 11;
apt1.RecurrenceInfo.WeekOfMonth = WeekOfMonth.None;

wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L154

vb
apt1.RecurrenceInfo.Start = apt1.Start
apt1.RecurrenceInfo.DayNumber = 11
apt1.RecurrenceInfo.WeekOfMonth = WeekOfMonth.None

See Also

IRecurrenceInfo Interface

IRecurrenceInfo Members

DevExpress.XtraScheduler Namespace