Back to Devexpress

DateNavigator.CalculateVisibleDateRange(Boolean, out DateTime, out DateTime) Method

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigator-dot-calculatevisibledaterange-x28-system-dot-boolean-system-dot-datetime-system-dot-datetime-x29.md

latest2.5 KB
Original Source

DateNavigator.CalculateVisibleDateRange(Boolean, out DateTime, out DateTime) Method

Specifies the start and end dates of the data range that is currently visible within DateNavigator.

Namespace : DevExpress.Xpf.Editors.DateNavigator

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public void CalculateVisibleDateRange(
    bool excludeInactiveDates,
    out DateTime startDate,
    out DateTime endDate
)
vb
Public Sub CalculateVisibleDateRange(
    excludeInactiveDates As Boolean,
    ByRef startDate As Date,
    ByRef endDate As Date
)

Parameters

NameTypeDescription
excludeInactiveDatesBoolean

A Boolean value indicating whether inactive dates should be taken into account when calculating the start and end dates of the date navigator’s visible date range.

| | startDate | DateTime |

A DateTime object specifying the start date of the date navigator’s visible date range.

| | endDate | DateTime |

A DateTime object specifying the end date of the date navigator’s visible date range.

|

Remarks

The CalculateVisibleDateRange method calculates the start and end dates of the date range that is visible within the date navigator.

See Also

DateNavigator Class

DateNavigator Members

DevExpress.Xpf.Editors.DateNavigator Namespace