Skip to main content

AppointmentImageInfoCoreCollection<TAppointmentImageInfo>.GetAppointmentImageInfos(AppointmentImageType) Method

Enables you to access the images displayed within a particular appointment, by the specified image type.

Namespace: DevExpress.XtraScheduler.Drawing

Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

#Declaration

public virtual TAppointmentImageInfo[] GetAppointmentImageInfos(
    AppointmentImageType type
)

#Parameters

Name Type Description
type AppointmentImageType

An AppointmentImageType enumeration member specifying the image type.

#Returns

Type Description
TAppointmentImageInfo[]

An array of AppointmentImageInfo objects corresponding to images for display within an appointment.

#Remarks

The following code snippet illustrates how the GetAppointmentImageInfos can be used within the SchedulerControl.InitAppointmentImages handler to hide the reminder icon:

private void schedulerControl1_InitAppointmentImages(object sender, DevExpress.XtraScheduler.AppointmentImagesEventArgs e){
            AppointmentImageInfo[] infos = e.ImageInfoList.GetAppointmentImageInfos(AppointmentImageType.Reminder);
            if (infos.Length > 0)
                for (int i = 0; i < infos.Length; i++)
                    e.ImageInfoList.Remove(infos[i]);
}

If you handle the SchedulerControl.AppointmentViewInfoCustomizing event, you can use the AppointmentViewInfo.ShowBell property to achieve the same result.

See Also