SchedulerControl.GetTimeRegions(DateTimeRange, Object) Method
Returns the collection of time regions for the specified time interval.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
public IEnumerable<TimeRegionItem> GetTimeRegions(
DateTimeRange interval,
object resourceId
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Date |
A DevExpress. |
resource |
Object | A System. |
#Returns
Type | Description |
---|---|
IEnumerable<Time |
A collection of DevExpress. |
#Remarks
The collection returned by the GetTimeRegions method includes time regions of the TimeRegionType.Pattern type that are not shown to the user.
The collection returned by the GetTimeRegions method does not include time regions of the TimeRegionType.Occurrence type. Time regions of this type are generated dynamically at runtime.
Time regions are created when the SchedulerControl is visually initialized. If you call the GetTimeRegions method before the initialization, it returns an empty collection.