# ProjectCollection<T>

A bounded-by-document collection that creates items owned by the same project.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectObject.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L72)

**Implements**

`IReadOnlyList<T>` `IReadOnlyCollection<T>` `IEnumerable<T>` `IEnumerable`

**Attributes**

`DefaultMember("Item")`

A bounded-by-document collection that creates items owned by the same project.

## Inheritance

- object
- ProjectCollection<T>

## Usage

Explore 25 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 25

- Property [ProjectAssignment.Baselines](/api/project/officeimo-project-projectassignment/#property-baselines)
- Property [ProjectAssignment.CustomFields](/api/project/officeimo-project-projectassignment/#property-customfields)
- Property [ProjectAssignment.TimephasedData](/api/project/officeimo-project-projectassignment/#property-timephaseddata)
- Property [ProjectBaseline.TimephasedData](/api/project/officeimo-project-projectbaseline/#property-timephaseddata)
- Property [ProjectCalendar.Exceptions](/api/project/officeimo-project-projectcalendar/#property-exceptions)
- Property [ProjectCalendar.WeekDays](/api/project/officeimo-project-projectcalendar/#property-weekdays)
- Property [ProjectCalendar.WorkWeeks](/api/project/officeimo-project-projectcalendar/#property-workweeks)
- Property [ProjectCalendarException.WorkingTimes](/api/project/officeimo-project-projectcalendarexception/#property-workingtimes)
- Property [ProjectCustomFieldDefinition.LookupValues](/api/project/officeimo-project-projectcustomfielddefinition/#property-lookupvalues)
- Property [ProjectDocument.CustomFields](/api/project/officeimo-project-projectdocument/#property-customfields)
- Property [ProjectDocument.OutlineCodes](/api/project/officeimo-project-projectdocument/#property-outlinecodes)
- Property [ProjectOutlineCodeDefinition.Masks](/api/project/officeimo-project-projectoutlinecodedefinition/#property-masks)
- Property [ProjectOutlineCodeDefinition.Values](/api/project/officeimo-project-projectoutlinecodedefinition/#property-values)
- Property [ProjectResource.AvailabilityPeriods](/api/project/officeimo-project-projectresource/#property-availabilityperiods)
- Property [ProjectResource.Baselines](/api/project/officeimo-project-projectresource/#property-baselines)
- Property [ProjectResource.CustomFields](/api/project/officeimo-project-projectresource/#property-customfields)
- Property [ProjectResource.OutlineCodes](/api/project/officeimo-project-projectresource/#property-outlinecodes)
- Property [ProjectResource.Rates](/api/project/officeimo-project-projectresource/#property-rates)
- Property [ProjectResource.TimephasedData](/api/project/officeimo-project-projectresource/#property-timephaseddata)
- Property [ProjectTask.Baselines](/api/project/officeimo-project-projecttask/#property-baselines)
- Property [ProjectTask.CustomFields](/api/project/officeimo-project-projecttask/#property-customfields)
- Property [ProjectTask.OutlineCodes](/api/project/officeimo-project-projecttask/#property-outlinecodes)
- Property [ProjectTask.TimephasedData](/api/project/officeimo-project-projecttask/#property-timephaseddata)
- Property [ProjectWeekDay.WorkingTimes](/api/project/officeimo-project-projectweekday/#property-workingtimes)
- Property [ProjectWorkWeek.WeekDays](/api/project/officeimo-project-projectworkweek/#property-weekdays)

## Type Parameters

**T**

Filter members 

Show inherited

## Methods

`public T Add()` [#](#method-add)

[ProjectObject.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L72)

Creates and appends an item owned by this document.

Returns

`T`

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

[ProjectObject.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L92)

Enumerates items in document order.

Returns

`IEnumerator<T>`

`public bool Remove(T item)` [#](#method-remove)

[ProjectObject.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L82)

Removes an item; references to the removed object can no longer mutate it.

Parameters

**item T 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)

[ProjectObject.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L67)

Number of items in document order.

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

[ProjectObject.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectObject.cs#L69)

Returns an item by zero-based position.

Parameters

**index int required**

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