Moving Tasks

Microsoft Project allows moving one task under another task. In this case, the child tasks of the selected tasks are also moved with it. Aspose.Tasks for .NET provides the same feature by moving a task under another task. This can be achieved by adding the selected task to the children of the new parent as shown in this article. The task can be moved under a different parent or the same parent.

Move Task Under Another Parent

Please note that using CalculationMode.None can improve performance when you add several tasks and call Recalculate method one time.

Moving Task Under the Same Parent

The MoveToSibling method allows moving a task under the same parent to a specific position.

Add Task To The End

To add a task to the end of the collection use -1.