Tsk.OvertimeWork
Tsk.OvertimeWork field
The amount of overtime scheduled to be performed by all resources assigned to a task.
public static readonly Key<Duration, TaskKey> OvertimeWork;
Examples
Shows how to read task overtimes.
var project = new Project(DataDir + "TaskOvertimes.mpp");
// Read overtime and percentage completion for tasks
foreach (var task in project.RootTask.Children)
{
Console.WriteLine(task.Get(Tsk.OvertimeCost));
Console.WriteLine(task.Get(Tsk.OvertimeWork));
Console.WriteLine(task.Get(Tsk.PercentComplete));
Console.WriteLine(task.Get(Tsk.PercentWorkComplete));
Console.WriteLine(task.Get(Tsk.PhysicalPercentComplete));
// Set percent complete
task.Set(Tsk.PercentComplete, 100);
}
See Also
- struct Key<T,K>
- struct Duration
- enum TaskKey
- class Tsk
- namespace Aspose.Tasks
- assembly Aspose.Tasks