Back to Devexpress

GanttControl.AddTimelineBar() Method

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-03f66eb1.md

latest1.8 KB
Original Source

GanttControl.AddTimelineBar() Method

Creates a timeline bar and displays it on the timeline.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public TimelineBar AddTimelineBar()
vb
Public Function AddTimelineBar As TimelineBar

Returns

TypeDescription
TimelineBar

The timeline bar.

|

Remarks

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

csharp
using DevExpress.XtraGantt.TimeLine;

TimelineBar timelineBar = ganttControl1.AddTimelineBar();
vb
Imports DevExpress.XtraGantt.TimeLine

Dim timelineBar As TimelineBar = ganttControl1.AddTimelineBar()

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

See Also

TimelineBars

RemoveTimelineBar

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace