# GraphForceAtlas2PhysicsOptionsFluent

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

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Modifiers**

static

The fluent methods of [GraphForceAtlas2PhysicsOptions](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/), 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
- GraphForceAtlas2PhysicsOptionsFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static GraphForceAtlas2PhysicsOptions AvoidOverlap(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-avoidoverlap-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.AvoidOverlap](/api/chartforgex-interactivity-graphphysicssolveroptions/): Gets or sets how strongly node dimensions contribute to collision avoidance, from zero to one.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { AvoidOverlap = value };    graphForceAtlas2PhysicsOptions.AvoidOverlap(value);
```

 `public static GraphForceAtlas2PhysicsOptions CentralGravity(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-centralgravity-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.CentralGravity](/api/chartforgex-interactivity-graphphysicssolveroptions/): Gets or sets the attraction toward the graph center.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { CentralGravity = value };    graphForceAtlas2PhysicsOptions.CentralGravity(value);
```

 `public static GraphForceAtlas2PhysicsOptions Damping(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-damping-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.Damping](/api/chartforgex-interactivity-graphphysicssolveroptions/): Gets or sets how much velocity is discarded per simulation tick.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { Damping = value };    graphForceAtlas2PhysicsOptions.Damping(value);
```

 `public static GraphForceAtlas2PhysicsOptions GravitationalConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-gravitationalconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphForceAtlas2PhysicsOptions.GravitationalConstant](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/): Gets or sets the negative degree-weighted gravitational constant.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { GravitationalConstant = value };    graphForceAtlas2PhysicsOptions.GravitationalConstant(value);
```

 `public static GraphForceAtlas2PhysicsOptions SpringConstant(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-springconstant-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.SpringConstant](/api/chartforgex-interactivity-graphphysicssolveroptions/): Gets or sets the strength of edge springs.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { SpringConstant = value };    graphForceAtlas2PhysicsOptions.SpringConstant(value);
```

 `public static GraphForceAtlas2PhysicsOptions SpringLength(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-springlength-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphPhysicsSolverOptions.SpringLength](/api/chartforgex-interactivity-graphphysicssolveroptions/): Gets or sets the resting length of physics-enabled edges.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                     // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { SpringLength = value };    graphForceAtlas2PhysicsOptions.SpringLength(value);
```

 `public static GraphForceAtlas2PhysicsOptions Theta(GraphForceAtlas2PhysicsOptions graphForceAtlas2PhysicsOptions, double value)` [#](#method-theta-chartforgex-interactivity-graphforceatlas2physicsoptions-double) 

Sets [GraphForceAtlas2PhysicsOptions.Theta](/api/chartforgex-interactivity-graphforceatlas2physicsoptions/): Gets or sets the quadtree approximation threshold.

Parameters

**graphForceAtlas2PhysicsOptions ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions required**

The instance.

**value double required**

The value.

Returns

 `GraphForceAtlas2PhysicsOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Interactivity.GraphForceAtlas2PhysicsOptions { Theta = value };    graphForceAtlas2PhysicsOptions.Theta(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:15AFC6CC0785648E58C448DDCA8F9A8DEBC2E5F90EED7E4D88B69FA1E2499055 -->
