TaskBaseline Class |
Namespace: Aspose.Tasks
The TaskBaseline type exposes the following members.
Name | Description | |
---|---|---|
![]() | TaskBaseline |
Initializes a new instance of the TaskBaseline class.
|
Name | Description | |
---|---|---|
![]() ![]() | BaselineNumber |
Gets or sets the unique number of a baseline data record.
(Inherited from Baseline.) |
![]() ![]() | Bcwp |
Gets or sets the budgeted cost of a work performed by a resource for a project to-date.
(Inherited from Baseline.) |
![]() ![]() | Bcws |
Gets or sets the budget cost of a work scheduled for a resource.
(Inherited from Baseline.) |
![]() ![]() | Cost |
Gets or sets the projected cost of a resource when the baseline is saved.
(Inherited from Baseline.) |
![]() ![]() | Duration |
Gets or sets the scheduled duration of the task when the baseline was saved.
|
![]() ![]() | DurationFormat |
Gets or sets the format for expressing the duration of the task baseline.
|
![]() ![]() | EstimatedDuration |
Gets or sets a value indicating whether the baseline duration of the task was estimated.
|
![]() ![]() | Finish |
Gets or sets the scheduled finish date of the task when the baseline was saved.
|
![]() ![]() | FixedCost |
Gets or sets a fixed cost of the task when the baseline was saved.
|
![]() ![]() | Interim |
Gets or sets a value indicating whether this is an Interim Baseline.
|
![]() ![]() | Start |
Gets or sets the scheduled start date of the task when the baseline was saved.
|
![]() ![]() | TimephasedData |
Gets or sets a TimephasedDataCollection instance for this object.
The time phased data associated with the task baseline.
|
![]() ![]() | Work |
Gets or sets the work assigned to a resource when the baseline is saved.
(Inherited from Baseline.)Field ValueType:The amount of assigned work to a resource when the baseline was saved. |
Name | Description | |
---|---|---|
![]() ![]() | CompareTo(Baseline) |
IComparable interface implementation.
Compares this instance to the specified Baseline object.
(Inherited from Baseline.) |
![]() ![]() | CompareTo(TaskBaseline) |
IComparable interface implementation.
Compares this instance to the specified Baseline object.
|
![]() ![]() | Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides BaselineEquals(Object).) |
![]() ![]() | Equals(Baseline) |
Returns a value indicating whether this instance is equal to a specified object.
(Inherited from Baseline.) |
![]() ![]() | Equals(TaskBaseline) |
Returns a value indicating whether this instance is equal to the specified TaskBaseline object.
|
![]() ![]() | GetHashCode |
Returns a hash code value for the instance of the TaskBaseline class.
(Overrides BaselineGetHashCode.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
var project = new Project(); // Creating TaskBaseline var task = project.RootTask.Children.Add("Task"); project.SetBaseline(BaselineType.Baseline); // Display task baseline duration var baseline = task.Baselines.ToList()[0]; Console.WriteLine("Baseline Start: {0}", baseline.Start); Console.WriteLine("Baseline duration: {0}", baseline.Duration); Console.WriteLine("Baseline duration format: {0}", baseline.DurationFormat); Console.WriteLine("Is it estimated duration?: {0}", baseline.EstimatedDuration); Console.WriteLine("Baseline Finish: {0}", baseline.Finish); // value indicating whether this is an Interim Baseline Console.WriteLine("Interim: {0}", baseline.Interim); Console.WriteLine("Fixed Cost: {0}", baseline.FixedCost); // print timephased data of task baseline Console.WriteLine("Number of timephased items: " + baseline.TimephasedData.Count); foreach (var data in baseline.TimephasedData) { Console.WriteLine(" Uid: " + data.Uid); Console.WriteLine(" Start: " + data.Start); Console.WriteLine(" Finish: " + data.Finish); }