ProjectDuration
OfficeIMO.Project
A duration quantity that distinguishes working time from elapsed time and retains its display unit.
Inheritance
- ValueType
- ProjectDuration
Usage
Explore 20 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 16
- Property ProjectBaseline.Duration
- Property ProjectDependency.Lag
- Method ProjectDuration.ElapsedDays
- Method ProjectDuration.ElapsedHours
- Method ProjectDuration.Estimated
- Method ProjectDuration.WorkingDays
- Method ProjectDuration.WorkingHours
- Method ProjectDuration.WorkingMinutes
- Property ProjectTask.ActualDuration
- Property ProjectTask.Duration
- Property ProjectTask.LevelingDelay
- Property ProjectTask.RemainingDuration
- Property ProjectTaskSchedule.Duration
- Property ProjectTaskWorkSchedule.ActualDuration
- Property ProjectTaskWorkSchedule.RemainingDuration
- Property ProjectViewLink.Lag
Accepted by parameters 4
- Method ProjectDocument.AddRecurringTask
- Method ProjectDuration.Equals
- Method ProjectTask.After
- Method ProjectTask.SetDuration
Constructors
public ProjectDuration(decimal value, ProjectDurationUnit unit, bool elapsed = false, bool estimated = false) #Creates a duration. Negative values are reserved for dependency lag, not task duration.
Parameters
- value decimal
- unit OfficeIMO.Project.ProjectDurationUnit
- elapsed bool = false
- estimated bool = false
Methods
public static ProjectDuration ElapsedDays(decimal value) #Creates an elapsed-day duration.
Parameters
- value decimal
Returns
ProjectDurationpublic static ProjectDuration ElapsedHours(decimal value) #Creates an elapsed-hour duration.
Parameters
- value decimal
Returns
ProjectDurationpublic bool Equals(ProjectDuration other) #Tests quantity, unit, elapsed semantics, and estimate marker.
Parameters
- other OfficeIMO.Project.ProjectDuration
Returns
boolpublic override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public ProjectDuration Estimated(bool value = true) #Returns a copy with the estimate marker.
Parameters
- value bool = true
Returns
ProjectDurationpublic override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public override string ToString() #Returns an invariant diagnostic representation, not a locale-specific Project input string.
Returns
stringpublic static ProjectDuration WorkingDays(decimal value) #Creates a working-day duration.
Parameters
- value decimal
Returns
ProjectDurationpublic static ProjectDuration WorkingHours(decimal value) #Creates a working-hour duration.
Parameters
- value decimal
Returns
ProjectDurationpublic static ProjectDuration WorkingMinutes(decimal value) #Creates a working-minute duration.
Parameters
- value decimal
Returns
ProjectDuration