TaskBaselineCollection Class |
Namespace: Aspose.Tasks
The TaskBaselineCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Count |
Gets the number of objects contained in this TaskBaselineCollection object.
|
![]() | Item |
Returns the element at the specified index.
|
Name | Description | |
---|---|---|
![]() | Add |
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() ![]() | GetEnumerator |
Returns an enumerator for this collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | Remove |
Removes baseline from this collection.
|
![]() ![]() | ToList |
Converts the TaskBaselineCollection object to a list of TaskBaseline objects.
|
![]() | ToString | (Inherited from Object.) |
var project = new Project(); // create project baselines var task = project.RootTask.Children.Add("Task"); project.SetBaseline(BaselineType.Baseline); // print task baselines Console.WriteLine("Count of task baselines: " + task.Baselines.Count); foreach (var baseline in task.Baselines) { Console.WriteLine("Baseline duration: {0}", baseline.Duration); Console.WriteLine("Baseline start: {0}", baseline.Start); Console.WriteLine("Baseline finish: {0}", baseline.Finish); } // lets clear all baselines List<TaskBaseline> baselines = task.Baselines.ToList(); for (var i = 0; i < baselines.Count; i++) { task.Baselines.Remove(baselines[i]); }