TaskUtils Class |
Namespace: Aspose.Tasks.Util
The TaskUtils type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() ![]() | Apply |
Applies specified algorithm to each task of a tree.
|
![]() ![]() ![]() | Filter |
Builds new tree of tasks which satisfy the condition.
|
![]() ![]() ![]() | Find |
Finds a task which satisfy the condition in a tree of tasks.
|
![]() ![]() ![]() | TaskChildrenCount |
Recursively calculates a number of task's children tasks through all levels.
|
var project = new Project(DataDir + "Project2.mpp"); // gather all project tasks var coll = new ChildTasksCollector(); TaskUtils.Apply(project.RootTask, coll, 0); // work with tasks as with a plain list foreach (var task in coll.Tasks) { Console.WriteLine("Task Name: " + task.Get(Tsk.Name)); }