All docs
V20.1
20.2 (EAP/Beta)
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.

SchedulerControl.GetTimeRegions(DateTimeRange, Boolean) Method

Returns the collection of time regions for the specified time interval.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public IEnumerable<TimeRegionItem> GetTimeRegions(
    DateTimeRange interval,
    bool visibleResourcesOnly = true
)
Public Function GetTimeRegions(
    interval As DateTimeRange,
    visibleResourcesOnly As Boolean = True
) As IEnumerable(Of TimeRegionItem)

Parameters

Name Type Description
interval DateTimeRange

A DevExpress.Mvvm.DateTimeRange value that is the time interval for which to get time regions.

Optional Parameters

Name Type Default Description
visibleResourcesOnly Boolean

True

true, to return time regions available in the current view; otherwise, false.

Returns

Type Description
IEnumerable<TimeRegionItem>

A collection of DevExpress.Xpf.Scheduling.TimeRegionItem objects.

Remarks

If the visibleResourcesOnly parameter is set to false, 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.

See Also