ChildTasksCollector Class

Collects all child tasks.
Inheritance Hierarchy
SystemObject
  Aspose.Tasks.UtilChildTasksCollector

Namespace:  Aspose.Tasks.Util
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.10
Syntax
public class ChildTasksCollector : ITreeAlgorithm<Task>

The ChildTasksCollector type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleChildTasksCollector
Initializes a new instance of the ChildTasksCollector class.
Properties
  NameDescription
Public propertyCode exampleTasks
Gets a list collected child objects (tasks).
Methods
  NameDescription
Public methodCode exampleAlg
Processes the specified object.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode examplePostAlg
Do nothing.
Public methodCode examplePreAlg
Do nothing.
Public methodToString (Inherited from Object.)
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