# GraphLayoutOptionsFluent

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

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Modifiers**

static

The fluent methods of [GraphLayoutOptions](/api/chartforgex-interactivity-graphlayoutoptions/), 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
- GraphLayoutOptionsFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static GraphLayoutOptions ComponentSpacing(GraphLayoutOptions graphLayoutOptions, double value)` [#](#method-componentspacing-chartforgex-interactivity-graphlayoutoptions-double) 

Sets [GraphLayoutOptions.ComponentSpacing](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets additional distance between disconnected hierarchical components.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { ComponentSpacing = value };    graphLayoutOptions.ComponentSpacing(value);
```

 `public static GraphLayoutOptions Direction(GraphLayoutOptions graphLayoutOptions, GraphLayoutDirection value)` [#](#method-direction-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutdirection) 

Sets [GraphLayoutOptions.Direction](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets the direction used by hierarchical layouts.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value ChartForgeX.Interactivity.GraphLayoutDirection required**

The value.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { Direction = value };    graphLayoutOptions.Direction(value);
```

 `public static GraphLayoutOptions InferLevelsFromEdges(GraphLayoutOptions graphLayoutOptions, bool value = true)` [#](#method-inferlevelsfromedges-chartforgex-interactivity-graphlayoutoptions-boolean) 

Sets [GraphLayoutOptions.InferLevelsFromEdges](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets whether missing hierarchy levels may be inferred from directed edges.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                 // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { InferLevelsFromEdges = value };    graphLayoutOptions.InferLevelsFromEdges(value);
```

 `public static GraphLayoutOptions LevelSeparation(GraphLayoutOptions graphLayoutOptions, double value)` [#](#method-levelseparation-chartforgex-interactivity-graphlayoutoptions-double) 

Sets [GraphLayoutOptions.LevelSeparation](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets the distance between adjacent hierarchy levels in scene units.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { LevelSeparation = value };    graphLayoutOptions.LevelSeparation(value);
```

 `public static GraphLayoutOptions Mode(GraphLayoutOptions graphLayoutOptions, GraphLayoutMode value)` [#](#method-mode-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutmode) 

Sets [GraphLayoutOptions.Mode](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets the prepared layout family used before adapter-side runtime physics begins.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value ChartForgeX.Interactivity.GraphLayoutMode required**

The value.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { Mode = value };    graphLayoutOptions.Mode(value);
```

 `public static GraphLayoutOptions NodeSpacing(GraphLayoutOptions graphLayoutOptions, double value)` [#](#method-nodespacing-chartforgex-interactivity-graphlayoutoptions-double) 

Sets [GraphLayoutOptions.NodeSpacing](/api/chartforgex-interactivity-graphlayoutoptions/): Gets or sets the distance between nodes in the same hierarchy level in scene units.

Parameters

**graphLayoutOptions ChartForgeX.Interactivity.GraphLayoutOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphLayoutOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { NodeSpacing = value };    graphLayoutOptions.NodeSpacing(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:C0CC3CEDA4B2D4379510FA027070A183A5B3F28DA0A071D8D5E9FFE758EA2461 -->
