Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ProjectResourceCollection

OfficeIMO.Project

Namespace
OfficeIMO.Project
Assembly
OfficeIMO.Project
Source revision
ba882f6b0d07 with working tree changes
Implements
IReadOnlyList<ProjectResource> IReadOnlyCollection<ProjectResource> IEnumerable<ProjectResource> IEnumerable
Modifiers
sealed
Attributes
DefaultMember("Item")

Project resources with typed creation helpers.

Inheritance

  • object
  • ProjectResourceCollection

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

Methods

public ProjectResource AddCost(string name) #

Creates a cost resource.

Parameters

name string required
public ProjectResource AddMaterial(string name) #

Creates a material resource.

Parameters

name string required
public ProjectResource AddWork(string name) #

Creates a work resource.

Parameters

name string required
public ProjectResource GetByUid(int uid) #

Finds a resource by stable UID.

Parameters

uid int required
public IEnumerator<ProjectResource> GetEnumerator() #

Returns an enumerator that iterates through the collection.

Returns

IEnumerator<ProjectResource> An enumerator that can be used to iterate through the collection.
public bool Remove(ProjectResource resource, ProjectRemovalMode mode = RejectIfReferenced) #

Removes a resource, rejecting assignments unless cascade removal is explicit.

Parameters

resource OfficeIMO.Project.ProjectResource required
mode OfficeIMO.Project.ProjectRemovalMode = RejectIfReferenced optional

Returns

bool

Properties

public int Count { get; } #

Number of resources.

public ProjectResource this[int index] { get; } #

Resource by position.

Parameters

index int required