AppointmentImageInfo() Constructor
In This Article
Initializes a new instance of the AppointmentImageInfo class with default settings.
Namespace: DevExpress.XtraScheduler.Drawing
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Remarks
In this case the AppointmentImageInfoCore.Visible property will be set to true, and the AppointmentImageInfoCore.ImageType property will be set to AppointmentImageType.Custom.
#Example
The following example handles the SchedulerControl.InitAppointmentImages event to display a custom image within the exception appointment.
The image below shows the result:
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