Skip to content
ChartForgeX
Class

GraphLayoutOptions

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
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.

Accepted by parameters 14

Constructors

public GraphLayoutOptions() #

Properties

public GraphLayoutMode Mode { get; set; } #

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

public GraphLayoutDirection Direction { get; set; } #

Gets or sets the direction used by hierarchical layouts.

public double LevelSeparation { get; set; } #

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

public double NodeSpacing { get; set; } #

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

public double ComponentSpacing { get; set; } #

Gets or sets additional distance between disconnected hierarchical components.

public bool InferLevelsFromEdges { get; set; } #

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

Extension Methods

public static GraphLayoutOptions ComponentSpacing(GraphLayoutOptions graphLayoutOptions, double value) #

Sets GraphLayoutOptions.ComponentSpacing: 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

// C# initializer or property                                                             // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { ComponentSpacing = value };    graphLayoutOptions.ComponentSpacing(value);
public static GraphLayoutOptions Direction(GraphLayoutOptions graphLayoutOptions, GraphLayoutDirection value) #

Sets GraphLayoutOptions.Direction: 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

// 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) #

Sets GraphLayoutOptions.InferLevelsFromEdges: 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

// C# initializer or property                                                                 // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { InferLevelsFromEdges = value };    graphLayoutOptions.InferLevelsFromEdges(value);
public static GraphLayoutOptions LevelSeparation(GraphLayoutOptions graphLayoutOptions, double value) #

Sets GraphLayoutOptions.LevelSeparation: 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

// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { LevelSeparation = value };    graphLayoutOptions.LevelSeparation(value);
public static GraphLayoutOptions Mode(GraphLayoutOptions graphLayoutOptions, GraphLayoutMode value) #

Sets GraphLayoutOptions.Mode: 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

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Interactivity.GraphLayoutOptions { Mode = value };    graphLayoutOptions.Mode(value);
public static GraphLayoutOptions NodeSpacing(GraphLayoutOptions graphLayoutOptions, double value) #

Sets GraphLayoutOptions.NodeSpacing: 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

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