Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppointmentImageInfoCollection Class

Represents a collection of objects that contain information on appointment images.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public class AppointmentImageInfoCollection :
    AppointmentImageInfoCoreCollection<AppointmentImageInfo>

The following members return AppointmentImageInfoCollection objects:

#Remarks

The AppointmentImageInfoCollection represents a collection of AppointmentImageInfo objects. The properties and methods declared by this class can be used to perform common collection operations such as adding new or deleting existing items. Individual items can be accessed using indexer notation.

An instance of the AppointmentImageInfoCollection class can be accessed via the AppointmentImagesEventArgs.ImageInfoList property when handling the SchedulerControl.InitAppointmentImages event.

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