Back to Devexpress

SchedulerControl.RestoreTimeRegions(IEnumerable<TimeRegionItem>) Method

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-restoretimeregions-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xpf-dot-scheduling-dot-timeregionitem-x29.md

latest2.2 KB
Original Source

SchedulerControl.RestoreTimeRegions(IEnumerable<TimeRegionItem>) Method

Reverts the specified time regions of the TimeRegionType.ChangedOccurrence or TimeRegionType.DeletedOccurrence type to the TimeRegionType.Occurrence type.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public bool RestoreTimeRegions(
    IEnumerable<TimeRegionItem> timeRegions
)
vb
Public Function RestoreTimeRegions(
    timeRegions As IEnumerable(Of TimeRegionItem)
) As Boolean

Parameters

NameTypeDescription
timeRegionsIEnumerable<TimeRegionItem>

A list of DevExpress.Xpf.Scheduling.TimeRegionItem objects that are changed occurrences to restore.

|

Returns

TypeDescription
Boolean

true, if the time regions have been restored; otherwise, false.

|

Remarks

If the collection passed to method’s regions parameter contains time regions of any type other than the TimeRegionType.ChangedOccurrence or TimeRegionType.DeletedOccurrence, an exception is thrown.

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace