Skip to main content
All docs
V23.2

GanttControl.RemoveTimelineBar(TimelineBar) Method

Hides the specified timeline bar from the timeline.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v23.2.dll

NuGet Package: DevExpress.Win.Gantt

Declaration

public void RemoveTimelineBar(
    TimelineBar bar
)

Parameters

Name Type Description
bar TimelineBar

The timeline bar.

Remarks

The RemoveTimelineBar method removes the specified timeline bar from the TimelineBars collection and hides it from the timeline.

Note

The RemoveTimelineBar method does nothing if the timeline displays only one timeline bar.

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

See Also