# TopologyLegendItem

Represents a topology legend item. Review signatures, members, parameters, type relationships, and available reference details in ChartForgeX API reference.

 Class  

`ChartForgeX.Topology`

**Namespace**

`ChartForgeX.Topology`

**Assembly**

`ChartForgeX`

**Source**

[TopologyLegend.cs:295](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L295)

**Modifiers**

sealed

Represents a topology legend item.

## Inheritance

- object
- TopologyLegendItem

## Usage

 Explore 51 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 23

- Property [TopologyLegend.Items](/api/chartforgex-topology-topologylegend/#property-items)
- Extension method [TopologyLegendItem.BackgroundColor](/api/chartforgex-topology-topologylegenditem/#extension-backgroundcolor-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor)
- Extension method [TopologyLegendItem.Color](/api/chartforgex-topology-topologylegenditem/#extension-color-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor)
- Extension method [TopologyLegendItem.EdgeKind](/api/chartforgex-topology-topologylegenditem/#extension-edgekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyedgekind)
- Extension method [TopologyLegendItem.Evidence](/api/chartforgex-topology-topologylegenditem/#extension-evidence-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgeevidence)
- Extension method [TopologyLegendItem.IconId](/api/chartforgex-topology-topologylegenditem/#extension-iconid-chartforgex-topology-topologylegenditem-string)
- Extension method [TopologyLegendItem.Kind](/api/chartforgex-topology-topologylegenditem/#extension-kind-chartforgex-topology-topologylegenditem-chartforgex-topology-topologylegenditemkind)
- Extension method [TopologyLegendItem.Label](/api/chartforgex-topology-topologylegenditem/#extension-label-chartforgex-topology-topologylegenditem-string)
- Extension method [TopologyLegendItem.LineStyle](/api/chartforgex-topology-topologylegenditem/#extension-linestyle-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgelinestyle)
- Extension method [TopologyLegendItem.NodeKind](/api/chartforgex-topology-topologylegenditem/#extension-nodekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologynodekind)
- Extension method [TopologyLegendItem.Status](/api/chartforgex-topology-topologylegenditem/#extension-status-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyhealthstatus)
- Extension method [TopologyLegendItem.Symbol](/api/chartforgex-topology-topologylegenditem/#extension-symbol-chartforgex-topology-topologylegenditem-string)
- Method [TopologyLegendItemFluent.BackgroundColor](/api/chartforgex-topology-topologylegenditemfluent/#method-backgroundcolor-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor)
- Method [TopologyLegendItemFluent.Color](/api/chartforgex-topology-topologylegenditemfluent/#method-color-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor)
- Method [TopologyLegendItemFluent.EdgeKind](/api/chartforgex-topology-topologylegenditemfluent/#method-edgekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyedgekind)
- Method [TopologyLegendItemFluent.Evidence](/api/chartforgex-topology-topologylegenditemfluent/#method-evidence-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgeevidence)
- Method [TopologyLegendItemFluent.IconId](/api/chartforgex-topology-topologylegenditemfluent/#method-iconid-chartforgex-topology-topologylegenditem-string)
- Method [TopologyLegendItemFluent.Kind](/api/chartforgex-topology-topologylegenditemfluent/#method-kind-chartforgex-topology-topologylegenditem-chartforgex-topology-topologylegenditemkind)
- Method [TopologyLegendItemFluent.Label](/api/chartforgex-topology-topologylegenditemfluent/#method-label-chartforgex-topology-topologylegenditem-string)
- Method [TopologyLegendItemFluent.LineStyle](/api/chartforgex-topology-topologylegenditemfluent/#method-linestyle-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgelinestyle)
- Method [TopologyLegendItemFluent.NodeKind](/api/chartforgex-topology-topologylegenditemfluent/#method-nodekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologynodekind)
- Method [TopologyLegendItemFluent.Status](/api/chartforgex-topology-topologylegenditemfluent/#method-status-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyhealthstatus)
- Method [TopologyLegendItemFluent.Symbol](/api/chartforgex-topology-topologylegenditemfluent/#method-symbol-chartforgex-topology-topologylegenditem-string)

### Accepted by parameters 28

- Extension method [TopologyLegend.Item](/api/chartforgex-topology-topologylegend/#extension-item-chartforgex-topology-topologylegend-action-chartforgex-topology-topologylegenditem) parameter `configure`
- Extension method [TopologyLegend.Item](/api/chartforgex-topology-topologylegend/#extension-item-chartforgex-topology-topologylegend-chartforgex-topology-topologylegenditem) parameter `item`
- Extension method [TopologyLegend.Items](/api/chartforgex-topology-topologylegend/#extension-items-chartforgex-topology-topologylegend-collections-generic-ienumerable-chartforgex-topology-topologylegenditem) parameter `items`
- Method [TopologyLegendFluent.Item](/api/chartforgex-topology-topologylegendfluent/#method-item-chartforgex-topology-topologylegend-action-chartforgex-topology-topologylegenditem) parameter `configure`
- Method [TopologyLegendFluent.Item](/api/chartforgex-topology-topologylegendfluent/#method-item-chartforgex-topology-topologylegend-chartforgex-topology-topologylegenditem) parameter `item`
- Method [TopologyLegendFluent.Items](/api/chartforgex-topology-topologylegendfluent/#method-items-chartforgex-topology-topologylegend-collections-generic-ienumerable-chartforgex-topology-topologylegenditem) parameter `items`
- Extension method [TopologyLegendItem.BackgroundColor](/api/chartforgex-topology-topologylegenditem/#extension-backgroundcolor-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Color](/api/chartforgex-topology-topologylegenditem/#extension-color-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.EdgeKind](/api/chartforgex-topology-topologylegenditem/#extension-edgekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyedgekind) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Evidence](/api/chartforgex-topology-topologylegenditem/#extension-evidence-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgeevidence) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.IconId](/api/chartforgex-topology-topologylegenditem/#extension-iconid-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Kind](/api/chartforgex-topology-topologylegenditem/#extension-kind-chartforgex-topology-topologylegenditem-chartforgex-topology-topologylegenditemkind) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Label](/api/chartforgex-topology-topologylegenditem/#extension-label-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.LineStyle](/api/chartforgex-topology-topologylegenditem/#extension-linestyle-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgelinestyle) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.NodeKind](/api/chartforgex-topology-topologylegenditem/#extension-nodekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologynodekind) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Status](/api/chartforgex-topology-topologylegenditem/#extension-status-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyhealthstatus) parameter `topologyLegendItem`
- Extension method [TopologyLegendItem.Symbol](/api/chartforgex-topology-topologylegenditem/#extension-symbol-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.BackgroundColor](/api/chartforgex-topology-topologylegenditemfluent/#method-backgroundcolor-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Color](/api/chartforgex-topology-topologylegenditemfluent/#method-color-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.EdgeKind](/api/chartforgex-topology-topologylegenditemfluent/#method-edgekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyedgekind) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Evidence](/api/chartforgex-topology-topologylegenditemfluent/#method-evidence-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgeevidence) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.IconId](/api/chartforgex-topology-topologylegenditemfluent/#method-iconid-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Kind](/api/chartforgex-topology-topologylegenditemfluent/#method-kind-chartforgex-topology-topologylegenditem-chartforgex-topology-topologylegenditemkind) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Label](/api/chartforgex-topology-topologylegenditemfluent/#method-label-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.LineStyle](/api/chartforgex-topology-topologylegenditemfluent/#method-linestyle-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgelinestyle) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.NodeKind](/api/chartforgex-topology-topologylegenditemfluent/#method-nodekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologynodekind) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Status](/api/chartforgex-topology-topologylegenditemfluent/#method-status-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyhealthstatus) parameter `topologyLegendItem`
- Method [TopologyLegendItemFluent.Symbol](/api/chartforgex-topology-topologylegenditemfluent/#method-symbol-chartforgex-topology-topologylegenditem-string) parameter `topologyLegendItem`

 Filter members   

    Show inherited   

 

## Constructors

 `public TopologyLegendItem()` [#](#constructor-ctor) 

[TopologyLegend.cs:295](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L295)

## 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 string Label { get; set; }` [#](#property-label) 

[TopologyLegend.cs:295](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L295)

Gets or sets the item label.

 `public TopologyLegendItemKind Kind { get; set; }` [#](#property-kind) 

[TopologyLegend.cs:298](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L298)

Gets or sets the legend item kind.

 `public TopologyHealthStatus? Status { get; set; }` [#](#property-status) 

[TopologyLegend.cs:301](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L301)

Gets or sets the optional status represented by this item.

 `public TopologyNodeKind? NodeKind { get; set; }` [#](#property-nodekind) 

[TopologyLegend.cs:304](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L304)

Gets or sets the optional node kind represented by this item.

 `public TopologyEdgeKind? EdgeKind { get; set; }` [#](#property-edgekind) 

[TopologyLegend.cs:307](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L307)

Gets or sets the optional edge kind represented by this item.

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

[TopologyLegend.cs:310](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L310)

Gets or sets an optional short symbol shown for node legend items.

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

[TopologyLegend.cs:313](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L313)

Gets or sets an optional topology icon id shown for node legend items.

 `public ChartColor? Color { get; set; }` [#](#property-color) 

[TopologyLegend.cs:316](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L316)

Gets or sets the optional color override.

 `public ChartColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor) 

[TopologyLegend.cs:319](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L319)

Gets or sets the optional node marker background color override.

 `public TopologyEdgeLineStyle LineStyle { get; set; }` [#](#property-linestyle) 

[TopologyLegend.cs:322](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L322)

Gets or sets the optional line style used when rendering edge legend items.

 `public TopologyEdgeEvidence Evidence { get; set; }` [#](#property-evidence) 

[TopologyLegend.cs:325](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyLegend.cs#L325)

Gets or sets the link evidence this edge item explains. Unspecified items are not about evidence.

## Extension Methods

 `public static TopologyLegendItem BackgroundColor(TopologyLegendItem topologyLegendItem, ChartColor? value)` [#](#extension-backgroundcolor-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) 

Sets [TopologyLegendItem.BackgroundColor](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional node marker background color override.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Primitives.ChartColor? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { BackgroundColor = value };    topologyLegendItem.BackgroundColor(value);
```

 `public static TopologyLegendItem Color(TopologyLegendItem topologyLegendItem, ChartColor? value)` [#](#extension-color-chartforgex-topology-topologylegenditem-nullable-chartforgex-primitives-chartcolor) 

Sets [TopologyLegendItem.Color](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional color override.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Primitives.ChartColor? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Color = value };    topologyLegendItem.Color(value);
```

 `public static TopologyLegendItem EdgeKind(TopologyLegendItem topologyLegendItem, TopologyEdgeKind? value)` [#](#extension-edgekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyedgekind) 

Sets [TopologyLegendItem.EdgeKind](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional edge kind represented by this item.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyEdgeKind? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { EdgeKind = value };    topologyLegendItem.EdgeKind(value);
```

 `public static TopologyLegendItem Evidence(TopologyLegendItem topologyLegendItem, TopologyEdgeEvidence value)` [#](#extension-evidence-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgeevidence) 

Sets [TopologyLegendItem.Evidence](/api/chartforgex-topology-topologylegenditem/): Gets or sets the link evidence this edge item explains. Unspecified items are not about evidence.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyEdgeEvidence required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Evidence = value };    topologyLegendItem.Evidence(value);
```

 `public static TopologyLegendItem IconId(TopologyLegendItem topologyLegendItem, string? value)` [#](#extension-iconid-chartforgex-topology-topologylegenditem-string) 

Sets [TopologyLegendItem.IconId](/api/chartforgex-topology-topologylegenditem/): Gets or sets an optional topology icon id shown for node legend items.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value string? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { IconId = value };    topologyLegendItem.IconId(value);
```

 `public static TopologyLegendItem Kind(TopologyLegendItem topologyLegendItem, TopologyLegendItemKind value)` [#](#extension-kind-chartforgex-topology-topologylegenditem-chartforgex-topology-topologylegenditemkind) 

Sets [TopologyLegendItem.Kind](/api/chartforgex-topology-topologylegenditem/): Gets or sets the legend item kind.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyLegendItemKind required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Kind = value };    topologyLegendItem.Kind(value);
```

 `public static TopologyLegendItem Label(TopologyLegendItem topologyLegendItem, string value)` [#](#extension-label-chartforgex-topology-topologylegenditem-string) 

Sets [TopologyLegendItem.Label](/api/chartforgex-topology-topologylegenditem/): Gets or sets the item label.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value string required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Label = value };    topologyLegendItem.Label(value);
```

 `public static TopologyLegendItem LineStyle(TopologyLegendItem topologyLegendItem, TopologyEdgeLineStyle value)` [#](#extension-linestyle-chartforgex-topology-topologylegenditem-chartforgex-topology-topologyedgelinestyle) 

Sets [TopologyLegendItem.LineStyle](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional line style used when rendering edge legend items.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyEdgeLineStyle required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { LineStyle = value };    topologyLegendItem.LineStyle(value);
```

 `public static TopologyLegendItem NodeKind(TopologyLegendItem topologyLegendItem, TopologyNodeKind? value)` [#](#extension-nodekind-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologynodekind) 

Sets [TopologyLegendItem.NodeKind](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional node kind represented by this item.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyNodeKind? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { NodeKind = value };    topologyLegendItem.NodeKind(value);
```

 `public static TopologyLegendItem Status(TopologyLegendItem topologyLegendItem, TopologyHealthStatus? value)` [#](#extension-status-chartforgex-topology-topologylegenditem-nullable-chartforgex-topology-topologyhealthstatus) 

Sets [TopologyLegendItem.Status](/api/chartforgex-topology-topologylegenditem/): Gets or sets the optional status represented by this item.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value ChartForgeX.Topology.TopologyHealthStatus? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Status = value };    topologyLegendItem.Status(value);
```

 `public static TopologyLegendItem Symbol(TopologyLegendItem topologyLegendItem, string? value)` [#](#extension-symbol-chartforgex-topology-topologylegenditem-string) 

Sets [TopologyLegendItem.Symbol](/api/chartforgex-topology-topologylegenditem/): Gets or sets an optional short symbol shown for node legend items.

Parameters

**topologyLegendItem ChartForgeX.Topology.TopologyLegendItem required**

The instance.

**value string? required**

The value.

Returns

 `TopologyLegendItem` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyLegendItem { Symbol = value };    topologyLegendItem.Symbol(value);
```

<!-- PowerForge markdown artifact sha256:15C9E4BD1E0E0BB29A9EBC2EA237799E4DA3DF8572D6708BAD1CAE37C5197C98 -->
