ProjectCalendar
OfficeIMO.Project
A base or derived calendar with stored working days and exceptions; no scheduling runs during editing.
Inheritance
- ProjectObject
- ProjectEntity
- ProjectNamedEntity
- ProjectCalendar
Usage
Explore 15 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 10
- Property ProjectCalendar.BaseCalendar
- Method ProjectCalendarCollection.Add
- Method ProjectCalendarCollection.AddStandardWorkingWeek
- Method ProjectCalendarCollection.GetByUid
- Method ProjectCalendarCollection.GetEnumerator
- Property ProjectCalendarCollection.Item
- Property ProjectDocument.Calendar
- Property ProjectResource.Calendar
- Property ProjectSettings.Calendar
- Property ProjectTask.Calendar
Accepted by parameters 5
- Method ProjectCalendarCollection.Add
- Method ProjectCalendarCollection.Remove
- Method ProjectDocument.AddRecurringTask
- Method ProjectResource.SetCalendar
- Method ProjectTask.SetCalendar
Methods
public DateTime AddWorkingMinutes(DateTime start, decimal minutes, int maxCalendarDays = 36600, CancellationToken cancellationToken = default) #Adds signed working minutes, skipping non-working intervals. Uses local wall time without host timezone or DST conversion.
Parameters
- start System.DateTime
- minutes decimal
- maxCalendarDays int = 36600
- cancellationToken System.Threading.CancellationToken = default
Returns
DateTimepublic IReadOnlyList<ProjectWorkingRange> GetWorkingIntervals(DateTime date, CancellationToken cancellationToken = default) #Returns effective intervals within one local date, including an overnight shift started the preceding day.
Parameters
- date System.DateTime
- cancellationToken System.Threading.CancellationToken = default
Returns
IReadOnlyList<ProjectWorkingRange>public ProjectWeekDay SetWorkingDay(DayOfWeek day, params ProjectWorkingTime[] times) #Replaces the working intervals for a day without changing other calendar days.
Parameters
- day System.DayOfWeek
- times OfficeIMO.Project.ProjectWorkingTime[]
Returns
ProjectWeekDaypublic decimal WorkingMinutesBetween(DateTime start, DateTime finish, int maxCalendarDays = 36600, CancellationToken cancellationToken = default) #Counts signed working minutes between local dates. Split shifts are counted once, even when intervals overlap.
Parameters
- start System.DateTime
- finish System.DateTime
- maxCalendarDays int = 36600
- cancellationToken System.Threading.CancellationToken = default
Returns
decimalInherited Methods
Properties
public ProjectCalendar? BaseCalendar { get; set; } #The inherited calendar, or null for a base calendar.
public bool? IsBaseCalendar { get; set; } #Source base-calendar flag; null preserves absence.
public ProjectCollection<ProjectWeekDay> WeekDays { get; } #Explicit day-of-week declarations; absent days may be inherited.
public ProjectCollection<ProjectCalendarException> Exceptions { get; } #Date exceptions, including retained unmodeled recurrence data.
public ProjectCollection<ProjectWorkWeek> WorkWeeks { get; } #Date-bounded weekday overrides, applied after date exceptions and before the ordinary week.