Calculating Percentages
Contents
[
Hide
Show
]The PercentWorkComplete property exposed by the Asn class is used to manage the percentage of work completed on an assignment.
- PercentWorkComplete represents the percentage of the completed work on an assignment.
Getting Percentages in Aspose.Tasks
The following example shows how to get the percentage of work completed on an assignment using Aspose.Tasks.
1Project project = new Project("New Project.mpp");
2
3// Print assignment percent completion
4foreach (ResourceAssignment ra in project.ResourceAssignments)
5{
6 Console.WriteLine(ra.Get(Asn.PercentWorkComplete).ToString());
7}