[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
    Getting Started
   [Expand]Data Binding
   [Expand]Import and Export
   [Expand]Time Zones
   [Expand]Visual Elements
    [Expand]Data Binding
    [Expand]Data Exchange
    [Expand]Date and Time
    [Expand]Gantt View
    [Expand]Labels and Statuses
    [Expand]Printing and Reporting
    [Expand]Range Control
      How to: Create Appointments with Various Recurrence Types Programmatically
      Recurrence - Daily (examples)
      Recurrence - Exceptions (examples)
      Recurrence - Hourly (examples)
      Recurrence - Minutely (examples)
      Recurrence - Monthly (examples)
      Recurrence - Weekly (examples)
      Recurrence - Yearly (examples)
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Create Appointments with Various Recurrence Types Programmatically

This document illustrates how recurring appointments with different periodicity and number of occurrences can be created in code. Many examples are provided to help you in specifying complex periodical conditions.

Perform the following simple steps. First, create a new appointment pattern. Then, modify its recurrence information as required via the Appointment.RecurrenceInfo property. You can specify only one type of recurrence - every minute, hour, day, week, or year. Finally, add the appointment to the storage.

Expanded 1. Create a Pattern

An appointment pattern which starts at 3 AM on the current date finishes at 8:15 will be created. So the first appointment in a series will start at 3 AM and will last for 15 minutes.

Expanded 2. Specify a Minutely Recurrence

Expanded 3. Specify an Hourly Recurrence

Expanded 4. Specify a Daily Recurrence

Expanded 5. Specify a Weekly Recurrence

Expanded 6. Specify a Monthly Recurrence

Expanded 7. Specify a Yearly Recurrence

Expanded 8. Specify Recurrence with Exceptions

Expanded 9. The Final Step

And finally, add an appointment to the storage:

Expanded See Also

Is this topic helpful?​​​​​​​