# TopologyLegendFluent

The fluent methods of TopologyLegend, generated from its public properties: A property-named method sets a property and a singular-named method adds…

 Class  

`ChartForgeX.Topology`

**Namespace**

`ChartForgeX.Topology`

**Assembly**

`ChartForgeX`

**Modifiers**

static

The fluent methods of [TopologyLegend](/api/chartforgex-topology-topologylegend/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- TopologyLegendFluent

 Filter members   

    Show inherited   

 

## Methods

 Item 2 overloads 

 `public static TopologyLegend Item(TopologyLegend topologyLegend, TopologyLegendItem item)` [#](#method-item-chartforgex-topology-topologylegend-chartforgex-topology-topologylegenditem) 

Adds an item to [TopologyLegend.Items](/api/chartforgex-topology-topologylegend/): Gets the legend items.

Parameters

**topologyLegend ChartForgeX.Topology.TopologyLegend required**

The instance.

**item ChartForgeX.Topology.TopologyLegendItem required**

The item.

Returns

 `TopologyLegend` The same instance. 

 `public static TopologyLegend Item(TopologyLegend topologyLegend, Action<TopologyLegendItem> configure)` [#](#method-item-chartforgex-topology-topologylegend-action-chartforgex-topology-topologylegenditem) 

Creates an item, configures it and adds it to [TopologyLegend.Items](/api/chartforgex-topology-topologylegend/): Gets the legend items.

Parameters

**topologyLegend ChartForgeX.Topology.TopologyLegend required**

The instance.

**configure System.Action<ChartForgeX.Topology.TopologyLegendItem> required**

Configures the new item before it is added.

Returns

 `TopologyLegend` The same instance. 

 `public static TopologyLegend Items(TopologyLegend topologyLegend, IEnumerable<TopologyLegendItem> items)` [#](#method-items-chartforgex-topology-topologylegend-collections-generic-ienumerable-chartforgex-topology-topologylegenditem) 

Adds items to [TopologyLegend.Items](/api/chartforgex-topology-topologylegend/): Gets the legend items.

Parameters

**topologyLegend ChartForgeX.Topology.TopologyLegend required**

The instance.

**items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyLegendItem> required**

The items, in order.

Returns

 `TopologyLegend` The same instance. 

 `public static TopologyLegend Title(TopologyLegend topologyLegend, string? value)` [#](#method-title-chartforgex-topology-topologylegend-string) 

Sets [TopologyLegend.Title](/api/chartforgex-topology-topologylegend/): Gets or sets the legend title.

Parameters

**topologyLegend ChartForgeX.Topology.TopologyLegend required**

The instance.

**value string? required**

The value.

Returns

 `TopologyLegend` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Topology.TopologyLegend { Title = value };    topologyLegend.Title(value);
```

## 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?` 

<!-- PowerForge markdown artifact sha256:6344C846CF8FB05FF315003550496C27720F9DF14FFC17D08B12506CDF6BAD90 -->
