# ChartTrendLineOptionsFluent

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

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Modifiers**

static

The fluent methods of [ChartTrendLineOptions](/api/chartforgex-core-charttrendlineoptions/), 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
- ChartTrendLineOptionsFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static ChartTrendLineOptions ConfidenceLevel(ChartTrendLineOptions chartTrendLineOptions, double value)` [#](#method-confidencelevel-chartforgex-core-charttrendlineoptions-double) 

Sets [ChartTrendLineOptions.ConfidenceLevel](/api/chartforgex-core-charttrendlineoptions/): Gets or sets the pointwise confidence level, from 0.5 through 0.999. The default is 0.95.

Parameters

**chartTrendLineOptions ChartForgeX.Core.ChartTrendLineOptions required**

The instance.

**value double required**

The value.

Returns

 `ChartTrendLineOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Core.ChartTrendLineOptions { ConfidenceLevel = value };    chartTrendLineOptions.ConfidenceLevel(value);
```

 `public static ChartTrendLineOptions Interval(ChartTrendLineOptions chartTrendLineOptions, ChartTrendLineIntervalKind value)` [#](#method-interval-chartforgex-core-charttrendlineoptions-chartforgex-core-charttrendlineintervalkind) 

Sets [ChartTrendLineOptions.Interval](/api/chartforgex-core-charttrendlineoptions/): Gets or sets the optional pointwise interval. The default is None.

Parameters

**chartTrendLineOptions ChartForgeX.Core.ChartTrendLineOptions required**

The instance.

**value ChartForgeX.Core.ChartTrendLineIntervalKind required**

The value.

Returns

 `ChartTrendLineOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartTrendLineOptions { Interval = value };    chartTrendLineOptions.Interval(value);
```

 `public static ChartTrendLineOptions Model(ChartTrendLineOptions chartTrendLineOptions, ChartTrendLineModel value)` [#](#method-model-chartforgex-core-charttrendlineoptions-chartforgex-core-charttrendlinemodel) 

Sets [ChartTrendLineOptions.Model](/api/chartforgex-core-charttrendlineoptions/): Gets or sets the fit model. Linear preserves the existing least-squares endpoint behavior.

Parameters

**chartTrendLineOptions ChartForgeX.Core.ChartTrendLineOptions required**

The instance.

**value ChartForgeX.Core.ChartTrendLineModel required**

The value.

Returns

 `ChartTrendLineOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartTrendLineOptions { Model = value };    chartTrendLineOptions.Model(value);
```

 `public static ChartTrendLineOptions PolynomialDegree(ChartTrendLineOptions chartTrendLineOptions, int value)` [#](#method-polynomialdegree-chartforgex-core-charttrendlineoptions-int32) 

Sets [ChartTrendLineOptions.PolynomialDegree](/api/chartforgex-core-charttrendlineoptions/): Gets or sets the Polynomial model's degree, either two or three. The default is two.

Parameters

**chartTrendLineOptions ChartForgeX.Core.ChartTrendLineOptions required**

The instance.

**value int required**

The value.

Returns

 `ChartTrendLineOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartTrendLineOptions { PolynomialDegree = value };    chartTrendLineOptions.PolynomialDegree(value);
```

 `public static ChartTrendLineOptions SampleCount(ChartTrendLineOptions chartTrendLineOptions, int value)` [#](#method-samplecount-chartforgex-core-charttrendlineoptions-int32) 

Sets [ChartTrendLineOptions.SampleCount](/api/chartforgex-core-charttrendlineoptions/): Gets or sets uniform source-X samples, from 17 through 513. The default is 129.

Parameters

**chartTrendLineOptions ChartForgeX.Core.ChartTrendLineOptions required**

The instance.

**value int required**

The value.

Returns

 `ChartTrendLineOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartTrendLineOptions { SampleCount = value };    chartTrendLineOptions.SampleCount(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:41D1ADBDE914532986DE61BC2A8AEFBCD18E982A2A35C5455252D39E109EDFBA -->
