Back to Devexpress

AppointmentImagesEventArgs.ImageInfoList Property

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentimageseventargs-985cbe0f.md

latest2.8 KB
Original Source

AppointmentImagesEventArgs.ImageInfoList Property

Gets a collection of AppointmentImageInfo objects.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public AppointmentImageInfoCollection ImageInfoList { get; }
vb
Public ReadOnly Property ImageInfoList As AppointmentImageInfoCollection

Property Value

TypeDescription
AppointmentImageInfoCollection

An AppointmentImageInfoCollection object which represents the event’s collection of images.

|

Remarks

Use the ImageInfoList property to access a collection of images that can be displayed within appointments.

Example

The following example handles the SchedulerControl.InitAppointmentImages event to display a custom image within the exception appointment.

The image below shows the result:

csharp
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);
    }
}
vb
Imports DevExpress.XtraScheduler
Imports DevExpress.XtraScheduler.Drawing
' ...

Private Sub SchedulerControl1_InitAppointmentImages(ByVal sender As Object, ByVal e As _
AppointmentImagesEventArgs) Handles SchedulerControl1.InitAppointmentImages
   If e.Appointment.IsException Then
      Dim info As AppointmentImageInfo = New AppointmentImageInfo()
      info.Image = SystemIcons.Warning.ToBitmap()
      e.ImageInfoList.Add(info)
   End If
End Sub

See Also

AppointmentImagesEventArgs Class

AppointmentImagesEventArgs Members

DevExpress.XtraScheduler Namespace