Asn.LevelingDelay
Asn.LevelingDelay field
The delay caused by leveling.
public static readonly Key<Duration, AsnKey> LevelingDelay;
Examples
Shows how to read/write Asn.Delay and Asn.LevelingDelay properties.
var project = new Project();
var task = project.RootTask.Children.Add("Task 1");
task.Set(Tsk.Start, new DateTime(2000, 1, 3, 8, 0, 0));
task.Set(Tsk.Duration, project.GetDuration(8));
var resource = project.Resources.Add("Resource 1");
var assignment = project.ResourceAssignments.Add(task, resource);
assignment.Set(Asn.Delay, project.GetDuration(0, TimeUnitType.Day));
Console.WriteLine("Delay: " + assignment.Get(Asn.Delay));
Console.WriteLine("Leveling Delay: " + assignment.Get(Asn.LevelingDelay));
See Also
- struct Key<T,K>
- struct Duration
- enum AsnKey
- class Asn
- namespace Aspose.Tasks
- assembly Aspose.Tasks