GanttControl.SetTimelineVisibleRange(DateTime, DateTime) Method
Sets a visible date range for the timeline.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
start | DateTime | The start date. |
finish | DateTime | 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