Skip to main content
A newer version of this page is available. .

AppointmentImagesEventArgs Class

Provides data for the SchedulerControl.InitAppointmentImages event.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public class AppointmentImagesEventArgs :
    EventArgs

Remarks

The SchedulerControl.InitAppointmentImages event occurs before an appointment is painted when its images are initialized. The AppointmentImagesEventArgs class introduces the AppointmentImagesEventArgs.ImageInfoList property that specifies the images to be displayed within the appointment. The processed appointment is identified by the AppointmentEventArgs.Appointment property.

Note, that AppointmentImagesEventArgs objects are automatically created, initialized and passed to SchedulerControl.InitAppointmentImages event handlers.

Example

The following example handles the SchedulerControl.InitAppointmentImages event to display a custom image within the exception appointment.

The image below shows the result:

InitAppointmentImages event

using DevExpress.XtraScheduler;
using DevExpress.XtraScheduler.Drawing;
// ...

private void schedulerControl1_InitAppointmentImages(object sender, AppointmentImagesEventArgs e) {
    if(e.Appointment.IsException) {
        AppointmentImageInfo info = new AppointmentImageInfo();
        info.Image = SystemIcons.Warning.ToBitmap();
        e.ImageInfoList.Add(info);
    }
}

Inheritance

Object
EventArgs
AppointmentImagesEventArgs
See Also