GanttControl.SetTimelineVisibleRange(DateTime, DateTime) Method
In This Article
Sets a visible date range for the timeline.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v24.2.dll
NuGet Package: DevExpress.Win.Gantt
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
start | Date |
The start date. |
finish | Date |
The finish date. |
#Remarks
The date range of timeline matches the duration of the project. The SetTimelineVisibleRange
method to specify a custom visible date range.
ganttControl1.SetTimelineVisibleRange(new DateTime(2023, 5, 1), new DateTime(2023, 12, 1));
The image below shows the result:
Users can hold Ctrl
and use the mouse wheel to change the visible date range.
Read the following topic for detailed information and examples: Timeline.
See Also