Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXOutlook365Sync.CustomizeAppointmentToEvent Event

Allows you to customize an event when the corresponding appointment is exported (or merged) to an Outlook 365 calendar.

Namespace: DevExpress.XtraScheduler.Microsoft365Calendar

Assembly: DevExpress.XtraScheduler.v24.2.Microsoft365Calendar.dll

NuGet Package: DevExpress.Scheduler.Core.Desktop.Microsoft365Calendar

#Declaration

public event EventHandler<ConvertEventArgs> CustomizeAppointmentToEvent

#Event Data

The CustomizeAppointmentToEvent event's data class is ConvertEventArgs. The following properties provide information specific to this event:

Property Description
Appointment Gets a user appointment in the Scheduler control.
Event Gets an Outlook 365 event.

#Remarks

The following example checks the description of appointments when they are exported (or merged) to an Outlook 365 calendar. It adds a general description to the event before it is added to the calendar if the corresponding appointment does not have a description.

using DevExpress.XtraScheduler.Microsoft365Calendar;

private void DxOutlook365Sync1_CustomizeAppointmentToEvent(object sender, ConvertEventArgs e) {
    if(e.Appointment != null && e.Appointment.Description == string.Empty)
        e.Event.Body.Content = string.Format("Please describe '{0}' event.", e.Appointment.Subject);
}
See Also