# ChartGridLineStyleFluent

Hand-written fluent methods of ChartGridLineStyle that do more than set one property.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartGridLineStyle.Fluent.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGridLineStyle.Fluent.cs#L12)

**Modifiers**

static

Hand-written fluent methods of [ChartGridLineStyle](/api/chartforgex-core-chartgridlinestyle/) that do more than set one property.

## Inheritance

- object
- ChartGridLineStyleFluent

 Filter members   

    Show inherited   

 

## Methods

 Dash 2 overloads 

 `public static ChartGridLineStyle Dash(ChartGridLineStyle chartGridLineStyle, double dash, double gap)` [#](#method-dash-chartforgex-core-chartgridlinestyle-double-double) 

[ChartGridLineStyle.Fluent.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartGridLineStyle.Fluent.cs#L12)

Sets the dash and gap lengths. Use zero dash for solid lines.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

**dash double required**

**gap double required**

Returns

 `ChartGridLineStyle` 

 `public static ChartGridLineStyle Dash(ChartGridLineStyle chartGridLineStyle, double value)` [#](#method-dash-chartforgex-core-chartgridlinestyle-double) 

Sets [ChartGridLineStyle.Dash](/api/chartforgex-core-chartgridlinestyle/): Gets or sets the dash length. Zero renders solid lines.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value double required**

The value.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { Dash = value };    chartGridLineStyle.Dash(value);
```

 `public static ChartGridLineStyle Gap(ChartGridLineStyle chartGridLineStyle, double value)` [#](#method-gap-chartforgex-core-chartgridlinestyle-double) 

Sets [ChartGridLineStyle.Gap](/api/chartforgex-core-chartgridlinestyle/): Gets or sets the dash gap length.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value double required**

The value.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { Gap = value };    chartGridLineStyle.Gap(value);
```

 `public static ChartGridLineStyle HorizontalOpacity(ChartGridLineStyle chartGridLineStyle, double value)` [#](#method-horizontalopacity-chartforgex-core-chartgridlinestyle-double) 

Sets [ChartGridLineStyle.HorizontalOpacity](/api/chartforgex-core-chartgridlinestyle/): Gets or sets horizontal grid line opacity.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value double required**

The value.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { HorizontalOpacity = value };    chartGridLineStyle.HorizontalOpacity(value);
```

 `public static ChartGridLineStyle ShowHorizontalLines(ChartGridLineStyle chartGridLineStyle, bool value = true)` [#](#method-showhorizontallines-chartforgex-core-chartgridlinestyle-boolean) 

Sets [ChartGridLineStyle.ShowHorizontalLines](/api/chartforgex-core-chartgridlinestyle/): Gets or sets whether horizontal value grid lines are drawn.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { ShowHorizontalLines = value };    chartGridLineStyle.ShowHorizontalLines(value);
```

 `public static ChartGridLineStyle ShowVerticalLines(ChartGridLineStyle chartGridLineStyle, bool value = true)` [#](#method-showverticallines-chartforgex-core-chartgridlinestyle-boolean) 

Sets [ChartGridLineStyle.ShowVerticalLines](/api/chartforgex-core-chartgridlinestyle/): Gets or sets whether vertical category grid lines are drawn.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { ShowVerticalLines = value };    chartGridLineStyle.ShowVerticalLines(value);
```

 `public static ChartGridLineStyle StrokeWidth(ChartGridLineStyle chartGridLineStyle, double value)` [#](#method-strokewidth-chartforgex-core-chartgridlinestyle-double) 

Sets [ChartGridLineStyle.StrokeWidth](/api/chartforgex-core-chartgridlinestyle/): Gets or sets grid line stroke width.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value double required**

The value.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { StrokeWidth = value };    chartGridLineStyle.StrokeWidth(value);
```

 `public static ChartGridLineStyle VerticalOpacity(ChartGridLineStyle chartGridLineStyle, double value)` [#](#method-verticalopacity-chartforgex-core-chartgridlinestyle-double) 

Sets [ChartGridLineStyle.VerticalOpacity](/api/chartforgex-core-chartgridlinestyle/): Gets or sets vertical grid line opacity.

Parameters

**chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required**

The instance.

**value double required**

The value.

Returns

 `ChartGridLineStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { VerticalOpacity = value };    chartGridLineStyle.VerticalOpacity(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:6C222A8252459DFC47884A4DC3203A62177DB4DCF065B38E10FB0F1CF4A8E78D -->
