Back to Devexpress

TimelineBar.RemoveTask(GanttControlNode) Method

windowsforms-devexpress-dot-xtragantt-dot-timeline-dot-timelinebar-dot-removetask-x28-devexpress-dot-xtragantt-dot-ganttcontrolnode-x29.md

latest2.3 KB
Original Source

TimelineBar.RemoveTask(GanttControlNode) Method

Hides the specified task from the timeline bar.

Namespace : DevExpress.XtraGantt.TimeLine

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public void RemoveTask(
    GanttControlNode node
)
vb
Public Sub RemoveTask(
    node As GanttControlNode
)

Parameters

NameTypeDescription
nodeGanttControlNode

The task.

|

Remarks

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

csharp
// Hides the first task from the timeline bar.
timelineBar.RemoveTask(timelineBar.Nodes[0]);
vb
' 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

RemoveSelectedTasks()

ClearTasks()

AddTask

AddTaskToTimeline

TimelineBar Class

TimelineBar Members

DevExpress.XtraGantt.TimeLine Namespace