Back to Devexpress

GanttControl.RemoveTimelineBar(TimelineBar) Method

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-dot-removetimelinebar-x28-devexpress-dot-xtragantt-dot-timeline-dot-timelinebar-x29.md

latest1.7 KB
Original Source

GanttControl.RemoveTimelineBar(TimelineBar) Method

Hides the specified timeline bar from the timeline.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public void RemoveTimelineBar(
    TimelineBar bar
)
vb
Public Sub RemoveTimelineBar(
    bar As TimelineBar
)

Parameters

NameTypeDescription
barTimelineBar

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

TimelineBars

AddTimelineBar()

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace