Skip to main content
All docs
V26.1
  • ICalendarExporter.AppointmentExporting Event

    Occurs before an ICalendarExporter class exports an appointment.

    Namespace: DevExpress.Xpf.Scheduling.iCalendar

    Assembly: DevExpress.Xpf.Scheduling.v26.1.dll

    NuGet Package: DevExpress.Wpf.Scheduling

    Declaration

    public event AppointmentItemExportingEventHandler AppointmentExporting

    Event Data

    The AppointmentExporting event's data class is DevExpress.Xpf.Scheduling.iCalendar.AppointmentItemExportingEventArgs.

    Remarks

    The AppointmentExporting event fires before the exporter writes an appointment to the output calendar. This event allows you to decide what to do if conflicting items are found, and to select appointments to export (set Cancel to true to skip an appointment).

    Example: Export a Custom Appointment Status

    The following code snippet exports a custom appointment status using the value of the X-DEVEXPRESS-STATUS property:

    void OnAppointmentItemExporting(object sender, AppointmentItemExportingEventArgs e) {
        var statusProperty = e.CustomProperties["X-DEVEXPRESS-STATUS"];
        if (statusProperty == null)
            return;
        //logic to calculate the custom value
        statusProperty.Value = calculatedValue;
    }
    
    See Also