Prj.WorkFormat

Prj.WorkFormat field

The format used to show the duration of the task.

public static readonly Key<TimeUnitType, PrjKey> WorkFormat;

Examples

Shows how to get a duration with default work format.

var project = new Project(DataDir + "Blank2010.mpp");

Console.WriteLine("Project's work format: " + project.Get(Prj.WorkFormat));

// create a work value with project's default work format
var work = project.GetWork(2);
Console.WriteLine("Work: " + work.TimeSpan);
Console.WriteLine("Time unit: " + work.TimeUnit);

See Also