# ProjectDependency

A predecessor relationship. Lag can be working/elapsed duration or a percentage.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectDependency.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L7)

**Base**

`ProjectObject`

**Modifiers**

sealed

A predecessor relationship. Lag can be working/elapsed duration or a percentage.

## Inheritance

- [ProjectObject](/api/project/officeimo-project-projectobject/)
- ProjectDependency

## Usage

Explore 4 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 3

- Method [ProjectDependencyCollection.Add](/api/project/officeimo-project-projectdependencycollection/#method-add-officeimo-project-projecttask-officeimo-project-projecttask-officeimo-project-projectdependencytype)
- Method [ProjectDependencyCollection.GetEnumerator](/api/project/officeimo-project-projectdependencycollection/#method-getenumerator)
- Property [ProjectDependencyCollection.Item](/api/project/officeimo-project-projectdependencycollection/#property-item-int32)

### Accepted by parameters 1

- Method [ProjectDependencyCollection.Remove](/api/project/officeimo-project-projectdependencycollection/#method-remove-officeimo-project-projectdependency) parameter `dependency`

Filter members 

Show inherited

## 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 ProjectTask? Predecessor { get; internal set; }` [#](#property-predecessor)

[ProjectDependency.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L7)

The predecessor task, or null for an unresolved external source relationship.

`public ProjectTask Successor { get; internal set; }` [#](#property-successor)

[ProjectDependency.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L9)

The successor task.

`public ProjectDependencyType? Type { get; set; }` [#](#property-type)

[ProjectDependency.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L18)

Dependency kind; absent source values remain absent.

`public ProjectDuration? Lag { get; set; }` [#](#property-lag)

[ProjectDependency.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L20)

Working/elapsed lag; cannot be combined with a percentage lag.

`public decimal? LagPercent { get; set; }` [#](#property-lagpercent)

[ProjectDependency.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L23)

Percentage lag; cannot be combined with duration lag.

`public bool LagPercentIsElapsed { get; set; }` [#](#property-lagpercentiselapsed)

[ProjectDependency.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L31)

Whether percentage lag advances elapsed time instead of the successor's working calendar. Requires percentage lag.

`public bool LagPercentIsEstimated { get; set; }` [#](#property-lagpercentisestimated)

[ProjectDependency.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L33)

Whether percentage lag carries the source's estimated marker. Requires percentage lag; calculation requires explicit normalization because application arithmetic is unqualified.

`public bool? CrossProject { get; set; }` [#](#property-crossproject)

[ProjectDependency.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L37)

Whether the source declares a cross-project relationship.

`public string? CrossProjectName { get; set; }` [#](#property-crossprojectname)

[ProjectDependency.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectDependency.cs#L39)

External project reference, preserved without opening it.

<!-- PowerForge markdown artifact sha256:4B4025F1D64906D8F6A214C6EB401B9CE0D6E2FAD932DEF05F86161C4C050944 -->
