# ProjectCalendarCollection

Calendars owned by the project. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Project API Reference.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectEntityCollections.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L71)

**Implements**

`IReadOnlyList<ProjectCalendar>` `IReadOnlyCollection<ProjectCalendar>` `IEnumerable<ProjectCalendar>` `IEnumerable`

**Modifiers**

sealed

**Attributes**

`DefaultMember("Item")`

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](/api/project/officeimo-project-projectdocument/#property-calendars)

Filter members 

Show inherited

## Methods

`public ProjectCalendar Add(string name, ProjectCalendar? baseCalendar = null)` [#](#method-add-string-officeimo-project-projectcalendar)

[ProjectEntityCollections.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L71)

Creates a calendar with no explicit working days.

Parameters

**name string required**

**baseCalendar OfficeIMO.Project.ProjectCalendar? = null optional**

Returns

`ProjectCalendar`

`public ProjectCalendar AddStandardWorkingWeek(string name = "Standard")` [#](#method-addstandardworkingweek-string)

[ProjectEntityCollections.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L80)

Creates an explicit Monday-Friday 08:00-12:00/13:00-17:00 working week.

Parameters

**name string = "Standard" optional**

Returns

`ProjectCalendar`

`public ProjectCalendar GetByUid(int uid)` [#](#method-getbyuid-int32)

[ProjectEntityCollections.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L87)

Finds a calendar by stable UID.

Parameters

**uid int required**

Returns

`ProjectCalendar`

`public IEnumerator<ProjectCalendar> GetEnumerator()` [#](#method-getenumerator)

[ProjectEntityCollections.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L91)

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)` [#](#method-remove-officeimo-project-projectcalendar)

[ProjectEntityCollections.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L89)

Removes an unreferenced calendar; inherited and assigned calendars cannot be removed.

Parameters

**calendar OfficeIMO.Project.ProjectCalendar required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int Count { get; }` [#](#property-count)

[ProjectEntityCollections.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L66)

Number of calendars.

`public ProjectCalendar this[int index] { get; }` [#](#property-item-int32)

[ProjectEntityCollections.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Collections/ProjectEntityCollections.cs#L68)

Calendar by position.

Parameters

**index int required**

<!-- PowerForge markdown artifact sha256:CC392EFDDE7142C1D058ABF1C005DBC11E8A371296D0A5E086B5BAE47026C6D4 -->
