# ChartTreeLink

Represents one parent-child relationship in a tree chart.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartTreeLink.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreeLink.cs#L28)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one parent-child relationship in a tree chart.

## Inheritance

- ValueType
- ChartTreeLink

## 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 1

- Property [ChartSeries.TreeLinks](/api/chartforgex-core-chartseries/#property-treelinks)

### Accepted by parameters 3

- Method [Chart.AddTree](/api/chartforgex-core-chart/#method-addtree-string-collections-generic-ienumerable-chartforgex-core-chartnode-collections-generic-ienumerable-chartforgex-core-charttreelink-nullable-chartforgex-primitives-chartcolor) parameter `links`
- Method [ChartSeries.CreateTree](/api/chartforgex-core-chartseries/#method-createtree-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartnode-collections-generic-ienumerable-chartforgex-core-charttreelink-nullable-chartforgex-primitives-chartcolor) parameter `links`
- Method [ChartSeries.ReplaceTreeData](/api/chartforgex-core-chartseries/#method-replacetreedata-collections-generic-ienumerable-chartforgex-core-chartnode-collections-generic-ienumerable-chartforgex-core-charttreelink) parameter `links`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartTreeLink(string parentId, string childId, double value = 1)` [#](#constructor-ctor-string-string-double) 

[ChartTreeLink.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreeLink.cs#L28)

Initializes a new tree link.

Parameters

**parentId string required**

**childId string required**

**value double = 1 optional**

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public string ParentId { get; }` [#](#property-parentid) 

[ChartTreeLink.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreeLink.cs#L12)

Gets the parent node ID.

 `public string ChildId { get; }` [#](#property-childid) 

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

Gets the child node ID, which also identifies its incoming branch.

 `public double Value { get; }` [#](#property-value) 

[ChartTreeLink.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreeLink.cs#L22)

Gets the optional positive node weight.

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