TaskLink.PredTask
TaskLink.PredTask property
Gets or sets the predecessor task.
public Task PredTask { get; set; }
Examples
Shows how to read project task links.
var project = new Project(DataDir + "GetPredecessorSuccessorTasks.mpp");
// Display names of predecessor and successor tasks
foreach (var taskLink in project.TaskLinks)
{
Console.WriteLine("Predecessor: " + taskLink.PredTask.Get(Tsk.Name));
Console.WriteLine("Successor: " + taskLink.SuccTask.Get(Tsk.Name));
Console.WriteLine("Lag Format: " + taskLink.LagFormat);
Console.WriteLine("Link Lag: " + taskLink.LinkLag);
Console.WriteLine();
}
See Also
- class Task
- class TaskLink
- namespace Aspose.Tasks
- assembly Aspose.Tasks