Class Task

Class Task

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

Represents a task in a project.

public class Task : IEquatable<task>

Inheritance

objectTask

Implements

IEquatable<task>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

The Task is representing a one atomic chunk of work.

One can use Task to plan a project by creating tasks and assign appropriate resources onto them. Tasks in a project are organized as a rooted hierarchical tree structure, with a root task and subtrees of children tasks.

To build a tree of tasks one can use a specialized collection Aspose.Tasks.TaskCollection by accessing Aspose.Tasks.Project.RootTask property e.g.:

``` csharp Project project = new Project();
                                                                                                                                                                                                         // add new tasks
                                                                                                                                                                                                         Task task1 = project.RootTask.Children.Add(); // a parent task with empty name is added
                                                                                                                                                                                                         Task childTask1 = task1.Children.Add("Child 1");
                                                                                                                                                                                                         childTask1.Set(Tsk.Start, new DateTime(2020, 2, 12, 8, 0, 0))
                                                                                                                                                                                                         childTask1.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
                                                                                                                                                                                                         childTask1.Set(Tsk.Finish, new DateTime(2020, 2, 12, 17, 0, 0));
                                                                                                                                                                                                         Task childTask3 = task1.Children.Add("Child 3");
                                                                                                                                                                                                         childTask3.Set(Tsk.Start, new DateTime(2020, 2, 13, 8, 0, 0))
                                                                                                                                                                                                         childTask3.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
                                                                                                                                                                                                         childTask3.Set(Tsk.Finish, new DateTime(2020, 2, 13, 17, 0, 0));
                                                                                                                                                                                                         Task childTask2 = task1.Children.Add("Child 2", 2); // inserts a task before the childTask3
                                                                                                                                                                                                         childTask2.Set(Tsk.Start, new DateTime(2020, 2, 14, 8, 0, 0))
                                                                                                                                                                                                         childTask2.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour));
                                                                                                                                                                                                         childTask2.Set(Tsk.Finish, new DateTime(2020, 2, 14, 17, 0, 0));

                                                                                                                                                                                                         // save project in the one of available formats
                                                                                                                                                                                                         project.Save("Filled project.xml", SaveFileFormat.MPP);

## Properties

### <a id="Aspose_Tasks_Task_ACWP"></a> ACWP

Gets or sets a value of ACWP.

```csharp
[EntityField]
public double ACWP { get; set; }

Property Value

double

ActivityId

Represents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).

public string ActivityId { get; set; }

Property Value

string

ActualCost

Gets or sets a value of ActualCost.

[EntityField]
public decimal ActualCost { get; set; }

Property Value

decimal

ActualDuration

Gets or sets a value of ActualDuration.

[EntityField]
public Duration ActualDuration { get; set; }

Property Value

Duration

ActualFinish

Gets or sets a value of ActualFinish.

[EntityField]
public DateTime ActualFinish { get; set; }

Property Value

DateTime

ActualOvertimeCost

Gets or sets a value of ActualOvertimeCost.

[EntityField]
public decimal ActualOvertimeCost { get; set; }

Property Value

decimal

ActualOvertimeWork

Gets or sets a value of ActualOvertimeWork.

[EntityField]
public Duration ActualOvertimeWork { get; set; }

Property Value

Duration

ActualOvertimeWorkProtected

Gets or sets a value of ActualOvertimeWorkProtected.

[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }

Property Value

Duration

ActualStart

Gets or sets a value of ActualStart.

[EntityField]
public DateTime ActualStart { get; set; }

Property Value

DateTime

ActualWork

Gets or sets a value of ActualWork.

[EntityField]
public Duration ActualWork { get; set; }

Property Value

Duration

ActualWorkProtected

Gets or sets a value of ActualWorkProtected.

[EntityField]
public Duration ActualWorkProtected { get; set; }

Property Value

Duration

Assignments

Gets a collection of resource assignments for this object.

public ResourceAssignmentCollection Assignments { get; }

Property Value

ResourceAssignmentCollection

BCWP

Gets or sets a value of BCWP.

[EntityField]
public double BCWP { get; set; }

Property Value

double

BCWS

Gets or sets a value of BCWS.

[EntityField]
public double BCWS { get; set; }

Property Value

double

Baselines

Gets or sets the collection of baseline values of the task.

public TaskBaselineCollection Baselines { get; set; }

Property Value

TaskBaselineCollection

BudgetCost

Gets or sets a value of BudgetCost.

[EntityField]
public decimal BudgetCost { get; set; }

Property Value

decimal

BudgetWork

Gets or sets a value of BudgetWork.

[EntityField]
public Duration BudgetWork { get; set; }

Property Value

Duration

CV

Gets or sets a value of CV.

[EntityField]
public double CV { get; set; }

Property Value

double

Calendar

Gets or sets a value of Calendar.

[EntityField]
public Calendar Calendar { get; set; }

Property Value

Calendar

Children

Gets a child task collection of this object. TaskCollection object which represents children tasks.

public TaskCollection Children { get; }

Property Value

TaskCollection

CommitmentFinish

Gets or sets a value of CommitmentFinish.

[EntityField]
public DateTime CommitmentFinish { get; set; }

Property Value

DateTime

CommitmentStart

Gets or sets a value of CommitmentStart.

[EntityField]
public DateTime CommitmentStart { get; set; }

Property Value

DateTime

CommitmentType

Gets or sets a value of CommitmentType.

[EntityField]
public int CommitmentType { get; set; }

Property Value

int

ConstraintDate

Gets or sets a value of ConstraintDate.

[EntityField]
public DateTime ConstraintDate { get; set; }

Property Value

DateTime

ConstraintType

Gets or sets a value of ConstraintType.

[EntityField]
public ConstraintType ConstraintType { get; set; }

Property Value

ConstraintType

Contact

Gets or sets a value of Contact.

[EntityField]
public string Contact { get; set; }

Property Value

string

Cost

Gets or sets a value of Cost.

[EntityField]
public decimal Cost { get; set; }

Property Value

decimal

CostVariance

Gets or sets a value of CostVariance.

[EntityField]
public double CostVariance { get; set; }

Property Value

double

Created

Gets or sets a value of Created.

[EntityField]
public DateTime Created { get; set; }

Property Value

DateTime

Deadline

Gets or sets a value of Deadline.

[EntityField]
public DateTime Deadline { get; set; }

Property Value

DateTime

DisplayAsSummary

Gets or sets a value indicating whether DisplayAsSummary is set or not.

[EntityField]
public NullableBool DisplayAsSummary { get; set; }

Property Value

NullableBool

DisplayOnTimeline

Gets or sets a value indicating whether DisplayOnTimeline is set or not.

[EntityField]
public bool DisplayOnTimeline { get; set; }

Property Value

bool

Duration

Gets or sets a value of Duration.

[EntityField]
public Duration Duration { get; set; }

Property Value

Duration

DurationFormat

Gets or sets a value of DurationFormat.

[Obsolete("This member is obsolete and will be removed after release 24.6. Please use Task.Duration.TimeUnit property instead.")]
[EntityField]
public TimeUnitType DurationFormat { get; set; }

Property Value

TimeUnitType

DurationText

Gets or sets a value of DurationText.

[EntityField]
public string DurationText { get; set; }

Property Value

string

DurationVariance

Gets or sets a value of DurationVariance.

[EntityField]
public Duration DurationVariance { get; set; }

Property Value

Duration

EarlyFinish

Gets or sets a value of EarlyFinish.

[EntityField]
public DateTime EarlyFinish { get; set; }

Property Value

DateTime

EarlyStart

Gets or sets a value of EarlyStart.

[EntityField]
public DateTime EarlyStart { get; set; }

Property Value

DateTime

EarnedValueMethod

Gets or sets a value of EarnedValueMethod.

[EntityField]
public EarnedValueMethodType EarnedValueMethod { get; set; }

Property Value

EarnedValueMethodType

ExtendedAttributes

Gets ExtendedAttributeCollection object containing the values of an extended attribute.

public ExtendedAttributeCollection ExtendedAttributes { get; }

Property Value

ExtendedAttributeCollection

Remarks

Two pieces of data are necessary - a pointer back to the extended attribute table which is specified either by the unique ID or the Field ID, and the value which is specified either with the value, or a pointer back to the value list.

ExternalId

Gets or sets a value of ExternalId.

[EntityField]
public int ExternalId { get; set; }

Property Value

int

ExternalTaskProject

Gets or sets a value of ExternalTaskProject.

[EntityField]
public string ExternalTaskProject { get; set; }

Property Value

string

ExternalUid

Gets or set the external task’s Unique identifier when the task is external.

[EntityField]
public int ExternalUid { get; set; }

Property Value

int

Finish

Gets or sets a value of Finish.

[EntityField]
public DateTime Finish { get; set; }

Property Value

DateTime

FinishSlack

Gets or sets a value of FinishSlack.

[EntityField]
public TimeSpan FinishSlack { get; set; }

Property Value

TimeSpan

FinishText

Gets or sets a value of FinishText.

[EntityField]
public string FinishText { get; set; }

Property Value

string

FinishVariance

Gets or sets a value of FinishVariance.

[EntityField]
public Duration FinishVariance { get; set; }

Property Value

Duration

FixedCost

Gets or sets a value of FixedCost.

[EntityField]
public double FixedCost { get; set; }

Property Value

double

FixedCostAccrual

Gets or sets a value of FixedCostAccrual.

[EntityField]
public CostAccrualType FixedCostAccrual { get; set; }

Property Value

CostAccrualType

FreeSlack

Gets or sets a value of FreeSlack.

[EntityField]
public TimeSpan FreeSlack { get; set; }

Property Value

TimeSpan

Guid

Gets or sets a value of Guid.

[EntityField]
public string Guid { get; set; }

Property Value

string

HideBar

Gets or sets a value indicating whether HideBar is set or not.

[EntityField]
public NullableBool HideBar { get; set; }

Property Value

NullableBool

Hyperlink

Gets or sets the title or explanatory text for a hyperlink associated with a task.

[EntityField]
public string Hyperlink { get; set; }

Property Value

string

HyperlinkAddress

Gets or sets the address for a hyperlink associated with a task.

[EntityField]
public string HyperlinkAddress { get; set; }

Property Value

string

Remarks

The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

HyperlinkSubAddress

Gets or sets the specific location in a document in a hyperlink associated with a task.

[EntityField]
public string HyperlinkSubAddress { get; set; }

Property Value

string

Remarks

The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Id

Gets or sets a value of Id.

[EntityField]
public int Id { get; set; }

Property Value

int

IgnoreResourceCalendar

Gets or sets a value indicating whether IgnoreResourceCalendar is set or not.

[EntityField]
public NullableBool IgnoreResourceCalendar { get; set; }

Property Value

NullableBool

IgnoreWarnings

Gets or sets a value indicating whether IgnoreWarnings is set or not.

[EntityField]
public bool IgnoreWarnings { get; set; }

Property Value

bool

IsActive

Gets or sets a value indicating whether IsActive is set or not.

[EntityField]
public NullableBool IsActive { get; set; }

Property Value

NullableBool

IsCritical

Gets or sets a value indicating whether IsCritical is set or not.

[EntityField]
public NullableBool IsCritical { get; set; }

Property Value

NullableBool

IsEffortDriven

Gets or sets a value indicating whether IsEffortDriven is set or not.

[EntityField]
public NullableBool IsEffortDriven { get; set; }

Property Value

NullableBool

IsEstimated

Gets or sets a value indicating whether IsEstimated is set or not.

[EntityField]
public NullableBool IsEstimated { get; set; }

Property Value

NullableBool

IsExpanded

Gets or sets a value indicating whether IsExpanded is set or not.

[EntityField]
public NullableBool IsExpanded { get; set; }

Property Value

NullableBool

IsExternalTask

Gets or sets a value indicating whether IsExternalTask is set or not.

[EntityField]
public bool IsExternalTask { get; set; }

Property Value

bool

IsManual

Gets or sets a value indicating whether IsManual is set or not.

[EntityField]
public NullableBool IsManual { get; set; }

Property Value

NullableBool

IsMarked

Gets or sets a value indicating whether IsMarked is set or not.

[EntityField]
public bool IsMarked { get; set; }

Property Value

bool

IsMilestone

Gets or sets a value indicating whether IsMilestone is set or not.

[EntityField]
public NullableBool IsMilestone { get; set; }

Property Value

NullableBool

IsNull

Gets or sets a value indicating whether IsNull is set or not.

[EntityField]
public NullableBool IsNull { get; set; }

Property Value

NullableBool

IsOverallocated

Gets or sets a value indicating whether IsOverallocated is set or not.

[EntityField]
public NullableBool IsOverallocated { get; set; }

Property Value

NullableBool

IsPublished

Gets or sets a value indicating whether IsPublished is set or not.

[EntityField]
public NullableBool IsPublished { get; set; }

Property Value

NullableBool

IsRecurring

Gets or sets a value indicating whether IsRecurring is set or not.

[EntityField]
public NullableBool IsRecurring { get; set; }

Property Value

NullableBool

IsResumeValid

Gets or sets a value indicating whether IsResumeValid is set or not.

[EntityField]
public NullableBool IsResumeValid { get; set; }

Property Value

NullableBool

IsRollup

Gets or sets a value indicating whether IsRollup is set or not.

[EntityField]
public NullableBool IsRollup { get; set; }

Property Value

NullableBool

IsSubproject

Gets or sets a value indicating whether IsSubproject is set or not.

[EntityField]
public bool IsSubproject { get; set; }

Property Value

bool

IsSubprojectReadOnly

Gets or sets a value indicating whether IsSubprojectReadOnly is set or not.

[EntityField]
public NullableBool IsSubprojectReadOnly { get; set; }

Property Value

NullableBool

IsSummary

Gets or sets a value indicating whether IsSummary is set or not.

[EntityField]
public bool IsSummary { get; set; }

Property Value

bool

LateFinish

Gets or sets a value of LateFinish.

[EntityField]
public DateTime LateFinish { get; set; }

Property Value

DateTime

LateStart

Gets or sets a value of LateStart.

[EntityField]
public DateTime LateStart { get; set; }

Property Value

DateTime

LevelAssignments

Gets or sets a value indicating whether LevelAssignments is set or not.

[EntityField]
public NullableBool LevelAssignments { get; set; }

Property Value

NullableBool

LevelingCanSplit

Gets or sets a value indicating whether LevelingCanSplit is set or not.

[EntityField]
public NullableBool LevelingCanSplit { get; set; }

Property Value

NullableBool

LevelingDelay

Gets or sets a value of LevelingDelay.

[EntityField]
public Duration LevelingDelay { get; set; }

Property Value

Duration

ManualDuration

Gets or sets a value of ManualDuration.

[EntityField]
public Duration ManualDuration { get; set; }

Property Value

Duration

ManualFinish

Gets or sets a value of ManualFinish.

[EntityField]
public DateTime ManualFinish { get; set; }

Property Value

DateTime

ManualStart

Gets or sets a value of ManualStart.

[EntityField]
public DateTime ManualStart { get; set; }

Property Value

DateTime

Name

Gets or sets a value of Name.

[EntityField]
public string Name { get; set; }

Property Value

string

NotesRTF

Gets or sets a value of NotesRTF.

[EntityField]
public string NotesRTF { get; set; }

Property Value

string

NotesText

Gets or sets a value of NotesText.

[EntityField]
public string NotesText { get; set; }

Property Value

string

OutlineCodes

Gets or sets Aspose.Tasks.OutlineCodeCollection object.

public OutlineCodeCollection OutlineCodes { get; set; }

Property Value

OutlineCodeCollection

Remarks

Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.

OutlineLevel

Gets or sets a value of OutlineLevel.

[EntityField]
public int OutlineLevel { get; set; }

Property Value

int

OutlineNumber

Gets or sets a value of OutlineNumber.

[EntityField]
public string OutlineNumber { get; set; }

Property Value

string

OvertimeCost

Gets or sets a value of OvertimeCost.

[EntityField]
public decimal OvertimeCost { get; set; }

Property Value

decimal

OvertimeWork

Gets or sets a value of OvertimeWork.

[EntityField]
public Duration OvertimeWork { get; set; }

Property Value

Duration

ParentProject

Gets the parent project of a task.

public Project ParentProject { get; }

Property Value

Project

Remarks

Call Project.UpdateReferences to update these properties.

ParentTask

Gets the parent task of a task.

public Task ParentTask { get; }

Property Value

Task

PercentComplete

Gets or sets a value of PercentComplete.

[EntityField]
public int PercentComplete { get; set; }

Property Value

int

PercentWorkComplete

Gets or sets a value of PercentWorkComplete.

[EntityField]
public int PercentWorkComplete { get; set; }

Property Value

int

PhysicalPercentComplete

Gets or sets a value of PhysicalPercentComplete.

[EntityField]
public int PhysicalPercentComplete { get; set; }

Property Value

int

Predecessors

Gets a Aspose.Tasks.TaskCollection object which contains all predecessors of this Task object.

public TaskCollection Predecessors { get; }

Property Value

TaskCollection

PreleveledFinish

Gets or sets a value of PreleveledFinish.

[EntityField]
public DateTime PreleveledFinish { get; set; }

Property Value

DateTime

PreleveledStart

Gets or sets a value of PreleveledStart.

[EntityField]
public DateTime PreleveledStart { get; set; }

Property Value

DateTime

PrimaveraProperties

Gets an object containing Primavera-specific properties for a task read from Primavera file.

public PrimaveraTaskProperties PrimaveraProperties { get; }

Property Value

PrimaveraTaskProperties

Priority

Gets or sets a value of Priority.

[EntityField]
public int Priority { get; set; }

Property Value

int

RecurringInfo

Gets the instance of Aspose.Tasks.RecurringTaskInfo class for the task which is a recurring task; if the task is not a recurring one then returns null; The info for the instance of Aspose.Tasks.RecurringTaskInfo is present in mpp file format only.

public RecurringTaskInfo RecurringInfo { get; }

Property Value

RecurringTaskInfo

RegularWork

Gets or sets a value of RegularWork.

[EntityField]
public Duration RegularWork { get; set; }

Property Value

Duration

RemainingCost

Gets or sets a value of RemainingCost.

[EntityField]
public decimal RemainingCost { get; set; }

Property Value

decimal

RemainingDuration

Gets or sets a value of RemainingDuration.

[EntityField]
public Duration RemainingDuration { get; set; }

Property Value

Duration

RemainingOvertimeCost

Gets or sets a value of RemainingOvertimeCost.

[EntityField]
public decimal RemainingOvertimeCost { get; set; }

Property Value

decimal

RemainingOvertimeWork

Gets or sets a value of RemainingOvertimeWork.

[EntityField]
public Duration RemainingOvertimeWork { get; set; }

Property Value

Duration

RemainingWork

Gets or sets a value of RemainingWork.

[EntityField]
public Duration RemainingWork { get; set; }

Property Value

Duration

Resume

Gets or sets a value of Resume.

[EntityField]
public DateTime Resume { get; set; }

Property Value

DateTime

SV

The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.

public double SV { get; set; }

Property Value

double

SplitParts

Gets a SplitPart collection that represents the portions of a task.

public SplitPartCollection SplitParts { get; }

Property Value

SplitPartCollection

Start

Gets or sets a value of Start.

[EntityField]
public DateTime Start { get; set; }

Property Value

DateTime

StartSlack

Gets or sets a value of StartSlack.

[EntityField]
public TimeSpan StartSlack { get; set; }

Property Value

TimeSpan

StartText

Gets or sets a value of StartText.

[EntityField]
public string StartText { get; set; }

Property Value

string

StartVariance

Gets or sets a value of StartVariance.

[EntityField]
public Duration StartVariance { get; set; }

Property Value

Duration

Status

Gets task status.

[EntityField]
public TaskStatus Status { get; }

Property Value

TaskStatus

StatusManager

Gets or sets a value of StatusManager.

[EntityField]
public string StatusManager { get; set; }

Property Value

string

Stop

Gets or sets a value of Stop.

[EntityField]
public DateTime Stop { get; set; }

Property Value

DateTime

SubprojectName

Gets or sets a value of SubprojectName.

[EntityField]
public string SubprojectName { get; set; }

Property Value

string

Successors

Gets a Aspose.Tasks.TaskCollection object which contains all successors of this Task object.

public TaskCollection Successors { get; }

Property Value

TaskCollection

TimephasedData

Gets or sets a TimephasedDataCollection object of this task. The time phased data block associated with a task.

public TimephasedDataCollection TimephasedData { get; set; }

Property Value

TimephasedDataCollection

Remarks

Reading supported for XML format only.

TotalSlack

Gets or sets a value of TotalSlack.

[EntityField]
public TimeSpan TotalSlack { get; set; }

Property Value

TimeSpan

Type

Gets or sets a value of Type.

[EntityField]
public TaskType Type { get; set; }

Property Value

TaskType

Uid

Gets or sets a value of Uid.

[EntityField]
public int Uid { get; set; }

Property Value

int

WBS

Gets or sets a value of WBS.

[EntityField]
public string WBS { get; set; }

Property Value

string

WBSLevel

Gets or sets a value of WBSLevel.

[EntityField]
public string WBSLevel { get; set; }

Property Value

string

Warning

Gets or sets a value indicating whether Warning is set or not.

[EntityField]
public bool Warning { get; set; }

Property Value

bool

Work

Gets or sets a value of Work.

[EntityField]
public Duration Work { get; set; }

Property Value

Duration

WorkVariance

Gets or sets a value of WorkVariance.

[EntityField]
public Duration WorkVariance { get; set; }

Property Value

Duration

Methods

Clone()

Creates full copy of a task without subtasks.

public object Clone()

Returns

object

Created copy of a task.

Delete()

Deletes a task from parent project tasks collection and all its assignments.

public void Delete()

Equals(Task)

Returns a value indicating whether this instance is equal to a specified task.

public bool Equals(Task other)

Parameters

other Task

The specified task to compare with this instance.

Returns

bool

returns true if the specified task and this instance have equal unique ids.

Equals(object)

Returns a value indicating whether this instance is equal to a specified object.

public override bool Equals(object obj)

Parameters

obj object

The specified object to compare with this instance.

Returns

bool

returns true if the specified task and this instance have equal unique ids.

Get<t>(Key<t, taskkey="">)

Returns the value to which the property is mapped in this container.

public T Get<t>(Key<t, taskkey=""> key)

Parameters

key Key<t, taskkey="">

the specified property key. Aspose.Tasks.Tsk for getting the property key.

Returns

T

the value to which the property is mapped in this container.

Type Parameters

T

the type of the mapped value.

GetHashCode()

Returns a hash code value for this Task.

public override int GetHashCode()

Returns

int

returns a hash code value for this object.

GetTimephasedData(DateTime, DateTime, TimephasedDataType)

Returns Aspose.Tasks.TimephasedDataCollection object with Aspose.Tasks.Task.TimephasedData values within given start and end dates of specified time-phased data type.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

timephasedType TimephasedDataType

The type of time phased data (Aspose.Tasks.TimephasedDataType).

Returns

TimephasedDataCollection

A Aspose.Tasks.TimephasedDataCollection object with Aspose.Tasks.Task.TimephasedData values within given start and end dates of specified timephased data type.

GetTimephasedData(DateTime, DateTime)

Returns Aspose.Tasks.TimephasedDataCollection object with Aspose.Tasks.Task.TimephasedData values within given start and end dates.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

Returns

TimephasedDataCollection

List of Aspose.Tasks.TimephasedData to be filled in.

MoveToSibling(Task)

Moves the current task at the same Outline Level before the specified task. If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels). If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically. If ParentProject.CalculationMode is Automatic the method reschedules all project’s tasks automatically (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).

public void MoveToSibling(Task beforeTask)

Parameters

beforeTask Task

Task before which the current task will be inserted.

MoveToSibling(int)

Moves the current task at the same Outline Level before a task with the specified Id. If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels). If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically. If ParentProject.CalculationMode is Automatic the method reschedules all project’s tasks automatically (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).

public void MoveToSibling(int beforeTaskId)

Parameters

beforeTaskId int

Id (Aspose.Tasks.Tsk.Id) of a task before which the current task will be inserted.

OutlineIndent()

Indents a task in the outline.

public void OutlineIndent()

OutlineOutdent()

Promotes a task in the outline.

public void OutlineOutdent()

SelectAllChildTasks()

Recursively collects all child tasks of this task.

public IEnumerable<task> SelectAllChildTasks()

Returns

IEnumerable<Task&gt;

A list of child tasks of this task.

Set<t>(Key<t, taskkey="">, T)

Maps the specified property to the specified value in this container.

public void Set<t>(Key<t, taskkey=""> key, T val)

Parameters

key Key<t, taskkey="">

the specified property key. Aspose.Tasks.Tsk for getting the property key.

val T

the value.

Type Parameters

T

the type of the mapped value.

ToString()

Returns short string representation of a task. The exact details of the representation are unspecified and subject to change.

public override string ToString()

Returns

string

short string which represents task object. </t,></t,></t,></t></t,></t,></t,></t></task>