All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TimeRegionItem.Type Property

Gets or sets the type of the time region item.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public TimeRegionType Type { get; set; }

Property Value

Type Description
TimeRegionType

A DevExpress.Xpf.Scheduling.TimeRegionType enumeration value.

Available values:

Name Description
Normal

Represents a non-recurring time region.

Pattern

Represents the time region which serves as the pattern for the other recurring time regions. The pattern for recurring time regions is specified via the TimeRegionItem.RecurrenceInfo property.

Occurrence

Represents a regular recurring time region whose pattern is specified via the TimeRegionItem.RecurrenceInfo property.

ChangedOccurrence

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

DeletedOccurrence

Represents a recurring time region which was deleted from the series of other recurring time regions of the same pattern.

Remarks

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

You can use the Type property to change a regular time region item in a recurring series into an exception. Use the RestoreOccurrence() method to restore an exception back to the regular occurrence.

Important

Do not change the time region item type arbitrarily. There are certain type changes which are not valid. Ensure that a time region item has all the information required for the new type, such as the correct TimeRegionItem.RecurrenceInfo value for the TimeRegionType.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 (TimeRegionItem.RecurrenceInfo and SchedulerItemBase.RecurrenceIndex for recurring series).

See Also