Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TimelineBar.RemoveTask(GanttControlNode) Method

Hides the specified task from the timeline bar.

Namespace: DevExpress.XtraGantt.TimeLine

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

public void RemoveTask(
    GanttControlNode node
)

#Parameters

Name Type Description
node GanttControlNode

The task.

#Remarks

The RemoveTask method removes the specified task from the TimelineBar.Nodes collection and hides the task from the timeline bar.

// Hides the first task from the timeline bar.
timelineBar.RemoveTask(timelineBar.Nodes[0]);

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

See Also