Skip to main content
A newer version of this page is available. .

GanttView.FitRangeToWidth(DateTime, DateTime) Method

Zooms the specified date range to fit it into the Gantt area.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gantt, DevExpress.Wpf.Gantt

Declaration

public void FitRangeToWidth(
    DateTime rangeStart,
    DateTime rangeEnd
)

Parameters

Name Type Description
rangeStart DateTime

A range start date.

rangeEnd DateTime

A range end date.

Remarks

The method call has no result until the GanttControl is loaded and has a non-zero width.

See Also