ChildTasksCollectorTasks Property

Gets a list collected child objects (tasks).

Namespace:  Aspose.Tasks.Util
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
Syntax
public List<Task> Tasks { get; }

Property Value

Type: ListTask
Examples
Shows how to iterate over all tasks in a project as a plain list.
var project = new Project(DataDir + "ParentChildTasks.mpp");

var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);

// Parse through all the collected tasks
foreach (var task in collector.Tasks)
{
    Console.WriteLine(task.Get(Tsk.Name));
}
See Also