AppointmentViewInfo Class

Contains information used for appointment visualization.

Namespace: DevExpress.Web.ASPxScheduler.Drawing

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public class AppointmentViewInfo :
    IAppointmentViewInfo,
    IAppointmentView
Public Class AppointmentViewInfo
    Implements IAppointmentViewInfo,
               IAppointmentView

Remarks

The AppointmentViewInfo object is available using the AppointmentViewInfoCustomizingEventArgs.ViewInfo property in the ASPxScheduler.AppointmentViewInfoCustomizing event handler.

Examples

The following code illustrates how to change the color of all appointments containing "Ind" substring in their Appointment.Subject and paint the status line differently for odd and even days.

AppointmentViewInfoCustomizing Event

using System.Drawing;
// ...

protected void ASPxScheduler1_AppointmentViewInfoCustomizing(object sender, DevExpress.Web.ASPxScheduler.AppointmentViewInfoCustomizingEventArgs e)
{
    if (e.ViewInfo.Appointment.Subject.Contains("Ind"))
        e.ViewInfo.AppointmentStyle.BackColor = Color.IndianRed; 
    Color color = (e.ViewInfo.Appointment.Start.Day % 2 == 0) ? Color.Red : Color.Green;
    Color statusColor = (e.ViewInfo.Appointment.Start.Day % 2 == 0) ? Color.Yellow : Color.Pink;
    e.ViewInfo.StatusBackgroundColor = color;
    e.ViewInfo.StatusColor = statusColor;
}

Inheritance

Object
AppointmentViewInfo

Implements

DevExpress.XtraScheduler.Drawing.IAppointmentView
See Also