# ChartGanttDependency

A detached finish-to-start relationship between stable Gantt series identities.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartGanttDependency.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L9)

**Base**

`ValueType`

**Implements**

 `IEquatable<ChartGanttDependency>` 

**Modifiers**

sealed

A detached finish-to-start relationship between stable Gantt series identities.

## Inheritance

- ValueType
- ChartGanttDependency

## Usage

 Explore 2 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 [Chart.GanttDependencies](/api/chartforgex-core-chart/#property-ganttdependencies)

### Accepted by parameters 1

- Method [ChartGanttDependency.Equals](/api/chartforgex-core-chartganttdependency/#method-equals-chartforgex-core-chartganttdependency) parameter `other`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartGanttDependency(ChartSeriesId predecessorId, ChartSeriesId successorId)` [#](#constructor-ctor-chartforgex-core-chartseriesid-chartforgex-core-chartseriesid) 

[ChartGanttDependency.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L9)

Creates a relationship snapshot between two distinct series identities.

Parameters

**predecessorId ChartForgeX.Core.ChartSeriesId required**

**successorId ChartForgeX.Core.ChartSeriesId required**

## Methods

 Equals 2 overloads 

 `public bool Equals(ChartGanttDependency other)` [#](#method-equals-chartforgex-core-chartganttdependency) 

[ChartGanttDependency.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L19)

Compares both stable series identities.

Parameters

**other ChartForgeX.Core.ChartGanttDependency required**

Returns

 `bool` 

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

[ChartGanttDependency.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L21)

Compares both stable series identities when obj is a [ChartGanttDependency](/api/chartforgex-core-chartganttdependency/).

Parameters

**obj object? required**

Returns

 `bool` 

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

[ChartGanttDependency.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L23)

Returns a hash code built from both stable series identities.

Returns

 `int` 

## Inherited Methods

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public ChartSeriesId PredecessorId { get; }` [#](#property-predecessorid) 

[ChartGanttDependency.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L15)

Gets the stable identity of the task whose finish anchors the link.

 `public ChartSeriesId SuccessorId { get; }` [#](#property-successorid) 

[ChartGanttDependency.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGanttDependency.cs#L17)

Gets the stable identity of the task whose start anchors the link.

<!-- PowerForge markdown artifact sha256:955F380B79712B1884553165C2AD1A1A2F8C4E741916088779CFFA9E73A06C0B -->
