AppointmentItem.Type Property

Gets or sets the type of an appointment.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

public AppointmentType Type { get; set; }
Public Property Type As AppointmentType

Property Value

Type Description
AppointmentType

An AppointmentType enumeration value which specifies the appointment's type.

Remarks

The type of the appointment is specified by its role (normal, recurring, modified in a recurring series (exception), etc.). All available types are listed in the AppointmentType enumeration.

You can use the Type property to change a regular appointment in a recurring series into an exception and restore an exception back to the regular occurrence.

IMPORTANT

Do not change the appointment type arbitrarily. There are certain type changes which are not valid. Ensure that an appointment has all the information required for the new type, such as the correct AppointmentItem.RecurrenceInfo value for the AppointmentType.ChangedOccurrence appointment type.

The following table lists type conversions which are not valid and results in an exception:

Before After
Normal Occurrence
Pattern Occurrence
Occurrence Pattern

Other type conversions are valid, provided an appointment has the correct information in the required fields (AppointmentItem.RecurrenceInfo and SchedulerItemBase.RecurrenceIndex for recurring series).

See Also