AppointmentImageInfoCollection.Images Property
Gets or sets the source of images that can be displayed within appointments.
Namespace: DevExpress.XtraScheduler.Drawing
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Property Value
Type | Description |
---|---|
Object | An object that provides images for appointments. |
#Remarks
Each appointment can show one or more images according to its state. Every image is represented via a AppointmentImageInfo object. The image for an object is obtained from the Images collection according to the AppointmentImageInfoCore.ImageIndex property’s value.
The Images property accepts the following image collections:
- ImageCollection - Supports image transparency.
- SharedImageCollection - Supports image transparency. Allows you to share images between controls within multiple forms.
- SvgImageCollection - Stores vector icons that can scale without losing their quality on high resolution devices.
- ImageList.
#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);
}
}