# GraphLayoutOptions

Describes deterministic graph layout preferences shared by static and interactive graph adapters.

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphLayoutOptions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphLayoutOptions.cs#L18)

**Modifiers**

sealed

**Attributes**

 `Fluent` 

Describes deterministic graph layout preferences shared by static and interactive graph adapters.

## Inheritance

- object
- GraphLayoutOptions

## Usage

 Explore 27 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 13

- Extension method [GraphLayoutOptions.ComponentSpacing](/api/chartforgex-interactivity-graphlayoutoptions/#extension-componentspacing-chartforgex-interactivity-graphlayoutoptions-double)
- Extension method [GraphLayoutOptions.Direction](/api/chartforgex-interactivity-graphlayoutoptions/#extension-direction-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutdirection)
- Extension method [GraphLayoutOptions.InferLevelsFromEdges](/api/chartforgex-interactivity-graphlayoutoptions/#extension-inferlevelsfromedges-chartforgex-interactivity-graphlayoutoptions-boolean)
- Extension method [GraphLayoutOptions.LevelSeparation](/api/chartforgex-interactivity-graphlayoutoptions/#extension-levelseparation-chartforgex-interactivity-graphlayoutoptions-double)
- Extension method [GraphLayoutOptions.Mode](/api/chartforgex-interactivity-graphlayoutoptions/#extension-mode-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutmode)
- Extension method [GraphLayoutOptions.NodeSpacing](/api/chartforgex-interactivity-graphlayoutoptions/#extension-nodespacing-chartforgex-interactivity-graphlayoutoptions-double)
- Method [GraphLayoutOptionsFluent.ComponentSpacing](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-componentspacing-chartforgex-interactivity-graphlayoutoptions-double)
- Method [GraphLayoutOptionsFluent.Direction](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-direction-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutdirection)
- Method [GraphLayoutOptionsFluent.InferLevelsFromEdges](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-inferlevelsfromedges-chartforgex-interactivity-graphlayoutoptions-boolean)
- Method [GraphLayoutOptionsFluent.LevelSeparation](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-levelseparation-chartforgex-interactivity-graphlayoutoptions-double)
- Method [GraphLayoutOptionsFluent.Mode](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-mode-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutmode)
- Method [GraphLayoutOptionsFluent.NodeSpacing](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-nodespacing-chartforgex-interactivity-graphlayoutoptions-double)
- Property [GraphSceneOptions.Layout](/api/chartforgex-interactivity-graphsceneoptions/#property-layout)

### Accepted by parameters 14

- Extension method [GraphLayoutOptions.ComponentSpacing](/api/chartforgex-interactivity-graphlayoutoptions/#extension-componentspacing-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Extension method [GraphLayoutOptions.Direction](/api/chartforgex-interactivity-graphlayoutoptions/#extension-direction-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutdirection) parameter `graphLayoutOptions`
- Extension method [GraphLayoutOptions.InferLevelsFromEdges](/api/chartforgex-interactivity-graphlayoutoptions/#extension-inferlevelsfromedges-chartforgex-interactivity-graphlayoutoptions-boolean) parameter `graphLayoutOptions`
- Extension method [GraphLayoutOptions.LevelSeparation](/api/chartforgex-interactivity-graphlayoutoptions/#extension-levelseparation-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Extension method [GraphLayoutOptions.Mode](/api/chartforgex-interactivity-graphlayoutoptions/#extension-mode-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutmode) parameter `graphLayoutOptions`
- Extension method [GraphLayoutOptions.NodeSpacing](/api/chartforgex-interactivity-graphlayoutoptions/#extension-nodespacing-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.ComponentSpacing](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-componentspacing-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.Direction](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-direction-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutdirection) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.InferLevelsFromEdges](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-inferlevelsfromedges-chartforgex-interactivity-graphlayoutoptions-boolean) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.LevelSeparation](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-levelseparation-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.Mode](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-mode-chartforgex-interactivity-graphlayoutoptions-chartforgex-interactivity-graphlayoutmode) parameter `graphLayoutOptions`
- Method [GraphLayoutOptionsFluent.NodeSpacing](/api/chartforgex-interactivity-graphlayoutoptionsfluent/#method-nodespacing-chartforgex-interactivity-graphlayoutoptions-double) parameter `graphLayoutOptions`
- Extension method [GraphSceneOptions.Layout](/api/chartforgex-interactivity-graphsceneoptions/#extension-layout-chartforgex-interactivity-graphsceneoptions-action-chartforgex-interactivity-graphlayoutoptions) parameter `configure`
- Method [GraphSceneOptionsFluent.Layout](/api/chartforgex-interactivity-graphsceneoptionsfluent/#method-layout-chartforgex-interactivity-graphsceneoptions-action-chartforgex-interactivity-graphlayoutoptions) parameter `configure`

 Filter members   

    Show inherited   

 

## Constructors

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

[GraphLayoutOptions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphLayoutOptions.cs#L18)

## 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 GraphLayoutMode Mode { get; set; }` [#](#property-mode) 

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

Gets or sets the prepared layout family used before adapter-side runtime physics begins.

 `public GraphLayoutDirection Direction { get; set; }` [#](#property-direction) 

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

Gets or sets the direction used by hierarchical layouts.

 `public double LevelSeparation { get; set; }` [#](#property-levelseparation) 

[GraphLayoutOptions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphLayoutOptions.cs#L18)

Gets or sets the distance between adjacent hierarchy levels in scene units.

 `public double NodeSpacing { get; set; }` [#](#property-nodespacing) 

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

Gets or sets the distance between nodes in the same hierarchy level in scene units.

 `public double ComponentSpacing { get; set; }` [#](#property-componentspacing) 

[GraphLayoutOptions.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphLayoutOptions.cs#L24)

Gets or sets additional distance between disconnected hierarchical components.

 `public bool InferLevelsFromEdges { get; set; }` [#](#property-inferlevelsfromedges) 

[GraphLayoutOptions.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphLayoutOptions.cs#L27)

Gets or sets whether missing hierarchy levels may be inferred from directed edges.

## Extension Methods

 `public static GraphLayoutOptions ComponentSpacing(GraphLayoutOptions graphLayoutOptions, double value)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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)` [#](#extension-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);
```

<!-- PowerForge markdown artifact sha256:29A99E86F72F3290C3EED41D618E8D276DFB438359C263E9EC17F24CBDC1460B -->
