AppointmentImageInfo.Image Property
Gets or sets the image to be displayed within the appointment.
Namespace: DevExpress.XtraScheduler.Drawing
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#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.
#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);
}
}
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Image property.
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.