Class
ProjectCalendarCollection
OfficeIMO.Project
Calendars owned by the project.
Inheritance
- object
- ProjectCalendarCollection
Usage
Explore 1 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 1
- Property ProjectDocument.Calendars
Methods
public ProjectCalendar Add(string name, ProjectCalendar? baseCalendar = null) #Creates a calendar with no explicit working days.
Parameters
- name string
- baseCalendar OfficeIMO.Project.ProjectCalendar? = null
Returns
ProjectCalendarpublic ProjectCalendar AddStandardWorkingWeek(string name = "Standard") #Creates an explicit Monday-Friday 08:00-12:00/13:00-17:00 working week.
Parameters
- name string = "Standard"
Returns
ProjectCalendarpublic ProjectCalendar GetByUid(int uid) #Finds a calendar by stable UID.
Parameters
- uid int
Returns
ProjectCalendarpublic IEnumerator<ProjectCalendar> GetEnumerator() #Returns an enumerator that iterates through the collection.
Returns
IEnumerator<ProjectCalendar> An enumerator that can be used to iterate through the collection.public bool Remove(ProjectCalendar calendar) #Removes an unreferenced calendar; inherited and assigned calendars cannot be removed.
Parameters
- calendar OfficeIMO.Project.ProjectCalendar
Returns
bool