SplitParts

Task.SplitParts property

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

public SplitPartCollection SplitParts { get; }

Examples

Shows how to display task’s split parts.

var project = new Project(DataDir + "ViewSplitTasks.mpp");

// Access task 
var task = project.RootTask.Children.GetById(4);

// Display split parts of task
var collection = task.SplitParts;
foreach (var splitPart in collection)
{
    Console.WriteLine("Start: " + splitPart.Start + "\nFinish: " + splitPart.Finish + "\n");
}

See Also