Overtimes in Tasks
Microsoft Project lets users assign overtime to tasks. Aspose.Tasks for C++ API supports this functionality through two properties in the Task class.
The [Tsk] (https://reference.aspose.com/tasks/cpp/class/aspose.tasks.tsk) exposes several properties for working with overtime:
- OvertimeCost: reads and writes the sum of a task’s actual and remaining overtime cost (double).
- OvertimeWork: reads and writes the amount of overtime scheduled for a task (TimeSpan).
Microsoft Project view of task overtime
To see a task’s overtime work and cost properties:
- In the Task Entry form, select the Insert menu and then Column.
- Add the overtime columns.
Getting task overtimes in Aspose.Tasks
The following code example demonstrates how to get the overtime cost and work associated with a task.