Skip to main content
All docs
V23.2

GanttControl.AddTimelineBar() Method

Creates a timeline bar and displays it on the timeline.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v23.2.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

public TimelineBar AddTimelineBar()

Returns

Type Description
TimelineBar

The timeline bar.

Remarks

The AddTimelineBar method creates a timeline bar and adds it to the TimelineBars collection.

using DevExpress.XtraGantt.TimeLine;

TimelineBar timelineBar = ganttControl1.AddTimelineBar();

Read the following topic for detailed information and examples: Timeline.

See Also