Skip to main content
Version: 4.2

GanttTaskCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Owns tasks and validates unique identities, hierarchy and dependency graphs.

public class GanttTaskCollection : Collection<GanttTask>

Derives from or implements Collection.

Example:

gantt.Tasks.Add(new GanttTask { Id = "release", DependsOn = new[] { "test" } });

Constructors​

Instance member GanttTaskCollection()​

Initializes a new instance of GanttTaskCollection.

Methods​

Protected member ClearItems()​

Releases all owned tasks.

Protected member InsertItem(index, item)​

Inserts a task after validating ownership and both graphs.

ParameterTypeDescription
indexInt32The zero-based item index.
itemGanttTaskThe item passed to the operation.

Protected member RemoveItem(index)​

Releases a task; references to its identity remain unresolved until it is restored.

ParameterTypeDescription
indexInt32The zero-based item index.

Protected member SetItem(index, item)​

Replaces an owned task atomically.

ParameterTypeDescription
indexInt32The zero-based item index.
itemGanttTaskThe item passed to the operation.