GanttControl.SetTimelineBarRange(TimelineBar, Nullable<DateTime>, Nullable<DateTime>) Method
In This Article
Sets a custom date range for the specified timeline bar.
Namespace: DevExpress.XtraGantt
Assembly: DevExpress.XtraGantt.v24.2.dll
NuGet Package: DevExpress.Win.Gantt
#Declaration
public void SetTimelineBarRange(
TimelineBar bar,
DateTime? start,
DateTime? finish
)
#Parameters
Name | Type | Description |
---|---|---|
bar | Timeline |
The timeline bar. |
start | Nullable<Date |
The start date. |
finish | Nullable<Date |
The finish date. |
#Remarks
The date range of timeline bars matches the duration of the project. The SetTimelineBarRange
method allows you to specify a custom date range for a specific timeline bar (within the date range of the timeline).
You can also use a timeline bar’s Options to specify the date range.
Users can use a context menu to specify a custom date range for the focused timeline bar.
Read the following topic for detailed information and examples: Timeline.
See Also