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
Declaration
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