Alg
ChildTasksCollector.Alg method
Processes the specified object.
public override void Alg(Task el, int level)
Parameter | Type | Description |
---|---|---|
el | Task | Object to process. |
level | Int32 | Tree node level. |
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
- class Task
- class ChildTasksCollector
- namespace Aspose.Tasks.Util
- assembly Aspose.Tasks