- 3 minutes to read
This topic describes the appointment as visual element and lists several properties that affect its visual appearance.
Generally, the Appointment is visually represented as a rectangle laying on the Time Cells of the scheduler area. The time cells it occupies correspond to its scheduled time interval. If an appointment is scheduled for a whole day (refer to the Appointment.AllDay property), or extends from one day to another, it is displayed in the All-Day Area of the ASPxScheduler control.
The basic appearance of the appointment is illustrated below:
The callout, which is shown in the picture, displays the start and end times of the appointment. It is invoked to indicate the changing interval when the appointment’s top or bottom border is dragged.
The appointment’s visual elements are shown in the following picture:
The visual elements of the appointment and the corresponding properties are listed in the table below:
|Height||AppointmentDisplayOptions.AppointmentHeight. This property specifies the height of the rectange that represents an appointment, unless the AppointmentDisplayOptions.AppointmentAutoHeight property is set to
|Start time||Appointment.Start. The start of the scheduled time. If the Appointment.AllDay property is set to true, the start date of the appointment is the System.DateTime.Date of the Appointment.Start, and the start time of the appointment is 0:00. To hide the start time, use the AppointmentDisplayOptions.StartTimeVisibility property. The start and end time values can be displayed using a clock face instead of numbers - specify the AppointmentDisplayOptions.TimeDisplayType property as needed.|
|End time||Appointment.End. The end of the scheduled time. To hide the end time, use the AppointmentDisplayOptions.EndTimeVisibility property. The start and end time values can be displayed using a clock face instead of numbers - specify the AppointmentDisplayOptions.TimeDisplayType property as needed.|
|Subject||Appointment.Subject. A string that briefly characterizes the appointment.|
|Location||Appointment.Location. A string that identifies the place for the scheduled event. When displayed, it is automatically enclosed in parentheses.|
|Description||Appointment.Description. A block of text that provides the additional information about an appointment.|
|Recurrence||Appointment.IsRecurring. If this property’s value is
|Status||AppointmentDisplayOptions.StatusDisplayType. It may display the time status by its color, or the appointment’s duration by the span of the colorized part along the time ruler (available for the Week View and Work-Week View. The status element may also be hidden.|
|Custom text in appointment||Handle the ASPxScheduler.InitAppointmentDisplayText event to display custom text for the subject and description within the appointment. You can also display multiline subject text by inserting the “\r\n” escape sequences (Carriage Return + Line Feed).|
|Custom images in appointment||Handle the ASPxScheduler.InitAppointmentImages event to display custom images within the appointment.|