# SparklineFluent

The fluent methods of Sparkline, 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 [Sparkline](/api/chartforgex-core-sparkline/), 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
- SparklineFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static Sparkline Color(Sparkline sparkline, ChartColor? value)` [#](#method-color-chartforgex-core-sparkline-nullable-chartforgex-primitives-chartcolor) 

Sets [Sparkline.Color](/api/chartforgex-core-sparkline/): Gets or sets the optional series colour; null uses the shared theme.

Parameters

**sparkline ChartForgeX.Core.Sparkline required**

The instance.

**value ChartForgeX.Primitives.ChartColor? required**

The value.

Returns

 `Sparkline` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
sparkline.Color = value;         sparkline.Color(value);
```

 `public static Sparkline Smooth(Sparkline sparkline, bool value = true)` [#](#method-smooth-chartforgex-core-sparkline-boolean) 

Sets [Sparkline.Smooth](/api/chartforgex-core-sparkline/): Gets or sets whether line and area segments use the shared curve interpolation.

Parameters

**sparkline ChartForgeX.Core.Sparkline required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `Sparkline` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
sparkline.Smooth = value;        sparkline.Smooth(value);
```

 `public static Sparkline Style(Sparkline sparkline, SparklineStyle value)` [#](#method-style-chartforgex-core-sparkline-chartforgex-core-sparklinestyle) 

Sets [Sparkline.Style](/api/chartforgex-core-sparkline/): Gets or sets the compact mark style.

Parameters

**sparkline ChartForgeX.Core.Sparkline required**

The instance.

**value ChartForgeX.Core.SparklineStyle required**

The value.

Returns

 `Sparkline` The same instance. 

Examples

```csharp
// C# initializer or property    // C# fluent
sparkline.Style = value;         sparkline.Style(value);
```

 `public static Sparkline ValueFormat(Sparkline sparkline, ChartValueFormat value)` [#](#method-valueformat-chartforgex-core-sparkline-chartforgex-core-chartvalueformat) 

Sets [Sparkline.ValueFormat](/api/chartforgex-core-sparkline/): Gets or sets the shared numeric display policy, compact by default.

Parameters

**sparkline ChartForgeX.Core.Sparkline required**

The instance.

**value ChartForgeX.Core.ChartValueFormat required**

The value.

Returns

 `Sparkline` The same instance. 

Examples

```csharp
// C# initializer or property     // C# fluent
sparkline.ValueFormat = value;    sparkline.ValueFormat(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:13C52C58199B5CFC0B0E5EB74234177B1F90EA70A9FE9854B98A58587F8C00A6 -->
