GanttTaskCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Owns tasks and validates unique identities, hierarchy and dependency graphs.
- C#
- VB.NET
public class GanttTaskCollection : Collection<GanttTask>
Public Class GanttTaskCollection
Inherits Collection(Of GanttTask)
Derives from or implements Collection.
Example:
gantt.Tasks.Add(new GanttTask { Id = "release", DependsOn = new[] { "test" } });
Constructors
GanttTaskCollection()
Initializes a new instance of GanttTaskCollection.
Methods
ClearItems()
Releases all owned tasks.
InsertItem(index, item)
Inserts a task after validating ownership and both graphs.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The zero-based item index. |
| item | GanttTask | The item passed to the operation. |
RemoveItem(index)
Releases a task; references to its identity remain unresolved until it is restored.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The zero-based item index. |
SetItem(index, item)
Replaces an owned task atomically.