Back to Devexpress

AppointmentEventArgs.Appointment Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmenteventargs.md

latest2.6 KB
Original Source

AppointmentEventArgs.Appointment Property

Gets the appointment for which the event was raised.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public Appointment Appointment { get; }
vb
Public ReadOnly Property Appointment As Appointment

Property Value

TypeDescription
Appointment

An Appointment object that is the appointment for which the event was raised.

|

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

winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/OutlookSynchronizerHelper.cs#L134

csharp
else
    eventArgs.Cancel = eventArgs.Appointment != null && insertedAppointments.Contains(eventArgs.Appointment);
break;

winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L172

vb
Else
    eventArgs.Cancel = eventArgs.Appointment IsNot Nothing AndAlso insertedAppointments.Contains(eventArgs.Appointment)
End If

See Also

AppointmentEventArgs Class

AppointmentEventArgs Members

DevExpress.XtraScheduler Namespace