Features > Task Management > Percent Complete |
GanttView provides percent complete feature to specify the completion status of a task in percentage. This feature helps users in keeping a track of all the tasks within a project schedule. The percent complete for a task can be set in GanttView through the Task information dialog, which can be accessed by clicking the Task Information button from the toolbar.
The task percent complete visually appears as a dark colored bar drawn inside the task bar.
To set percent completion status for a task, the Task class provides the PercentComplete property. This property accepts any positive double type integer value between 0 and 1, where 0 denotes that the task is not started while 1 denotes the task is complete.
The following code illustrates how to set the PercentComplete property for a task.
' PercentComplete value 0.6 means tha task is 60% complete
Dim t As New Task()
t.PercentComplete = 0.6
// PercentComplete value 0.6 means the Task is 60% complete
Task t = new Task();
t.PercentComplete = 0.6;