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

AppointmentImageInfo Class

Provides information on the image object displayed within the appointment.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v18.1.dll

Declaration

public class AppointmentImageInfo :
    AppointmentImageInfoCore

Remarks

Handle the SchedulerControl.InitAppointmentImages event to customize the images that are displayed within each appointment. An appointment can display either one or more standard or custom images. The collection of these images can be accessed via the AppointmentImagesEventArgs.ImageInfoList property.

Every AppointmentImageInfo object provides information on the image itself, its index, type and visibility state. Use the AppointmentImageInfo.Image, AppointmentImageInfoCore.ImageIndex, AppointmentImageInfoCore.ImageType and AppointmentImageInfoCore.Visible properties correspondingly to customize the image shown within a particular appointment.

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentImageInfo class.

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.

Inheritance

Object
AppointmentImageInfoCore
AppointmentImageInfo
See Also