Skip to main content
A newer version of this page is available. .

AppointmentItem.Type Property

Gets or sets the type of an appointment.

Namespace: DevExpress.UI.Xaml.Scheduler

Assembly: DevExpress.UI.Xaml.Scheduler.v19.2.dll

Declaration

public AppointmentType Type { get; protected set; }

Property Value

Type Description
AppointmentType

An DevExpress.UI.Xaml.Scheduler.AppointmentType enumeration value which specifies the appointment’s type.

Available values:

Name Description
Normal

Represents a standard (non-recurring) appointment.

Pattern

Represents the appointment which serves as the pattern for the other recurring appointments. The pattern for recurring appointments is specified via the AppointmentItem.PatternId property.

Occurrence

Represents a recurring appointment whose pattern appointment is specified via the AppointmentItem.RecurrenceRule property.

ChangedOccurrence

Represents a recurring appointment, which was changed and now doesn’t satisfy the pattern of the recurring series.

DeletedOccurrence

Represents a recurring appointment which was deleted from the series of other recurring appointments of the same pattern.

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.

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 RecurrenceRule value for the ChangedOccurrence appointment type.

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

Before

After

Normal

Occurence

Pattern

Occurence

Occurrence

Pattern

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

See Also