Version

Outdent Method

Removes this Task from the Tasks collection to which it currently belongs, and makes it a sibling of its former parent task.
Syntax
'Declaration
 
Public Function Outdent() As Boolean
public bool Outdent()

Return Value

A boolean value indicating whether the task was repositioned.
Exceptions
ExceptionDescription
TaskDependencyExceptionThrown if outdenting the task would cause a circular dependency.
Remarks

When a task is "outdented", it is removed from the Tasks collection to which it currently belongs, and added to the same Tasks collection as that which contains its former parent. Tasks which currently belong to the same Tasks collection as this task, and whose index within that collection is greater than this task's, become children of this task.

A root-level task, i.e., one that belongs to the associated UltraCalendarInfo's Tasks collection, cannot be outdented. False is returned from this method in that case, but no exception is thrown.

If outdenting the task would cause a circular dependency, a TaskDependencyException is thrown.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also