Back to Devexpress

AppointmentImageInfoCollection Class

windowsforms-devexpress-dot-xtrascheduler-dot-drawing-8f5a24f3.md

latest3.9 KB
Original Source

AppointmentImageInfoCollection Class

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

Namespace : DevExpress.XtraScheduler.Drawing

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public class AppointmentImageInfoCollection :
    AppointmentImageInfoCoreCollection<AppointmentImageInfo>
vb
Public Class AppointmentImageInfoCollection
    Inherits AppointmentImageInfoCoreCollection(Of 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:

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

Inheritance

Object DXCollectionBase<AppointmentImageInfo> DXCollection<AppointmentImageInfo> AppointmentImageInfoCoreCollection<AppointmentImageInfo> AppointmentImageInfoCollection

See Also

AppointmentImageInfoCollection Members

DevExpress.XtraScheduler.Drawing Namespace