AppointmentImageInfo.Image Property

Gets or sets the image to be displayed within the appointment.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v20.2.dll

Declaration

public Image Image { get; set; }
Public Property Image As Image

Property Value

Type Description
Image

A Image object which represents the appointment's image.

Remarks

Use the Image property to change the appointment's image when handling the SchedulerControl.InitAppointmentImages event.

Examples

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);
    }
}
See Also