# ChartAxisGridStyleFluent

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

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

static

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

## Inheritance

- object
- ChartAxisGridStyleFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static ChartAxisGridStyle BandColor(ChartAxisGridStyle chartAxisGridStyle, ChartColor? value)` [#](#method-bandcolor-chartforgex-core-chartaxisgridstyle-nullable-chartforgex-primitives-chartcolor) 

Sets [ChartAxisGridStyle.BandColor](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets the band fill, or null for a neutral tint of the theme grid colour.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

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

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { BandColor = value };    chartAxisGridStyle.BandColor(value);
```

 `public static ChartAxisGridStyle BandOpacity(ChartAxisGridStyle chartAxisGridStyle, double? value)` [#](#method-bandopacity-chartforgex-core-chartaxisgridstyle-nullable-system-double) 

Sets [ChartAxisGridStyle.BandOpacity](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets band opacity from zero to one, or null for 0.5 of the theme grid colour or 0.08 of an authored colour.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value double? required**

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { BandOpacity = value };    chartAxisGridStyle.BandOpacity(value);
```

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

Sets [ChartAxisGridStyle.Color](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets the line colour, or null for the theme grid colour.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

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

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { Color = value };    chartAxisGridStyle.Color(value);
```

 `public static ChartAxisGridStyle Dash(ChartAxisGridStyle chartAxisGridStyle, double dash, double gap)` [#](#method-dash-chartforgex-core-chartaxisgridstyle-double-double) 

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

Sets dash and gap lengths. A zero dash draws solid lines even when the chart grid is dashed.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

**dash double required**

**gap double required**

Returns

 `ChartAxisGridStyle` 

 `public static ChartAxisGridStyle MinorOpacity(ChartAxisGridStyle chartAxisGridStyle, double? value)` [#](#method-minoropacity-chartforgex-core-chartaxisgridstyle-nullable-system-double) 

Sets [ChartAxisGridStyle.MinorOpacity](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets minor line opacity, or null for half the major line opacity.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value double? required**

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { MinorOpacity = value };    chartAxisGridStyle.MinorOpacity(value);
```

 `public static ChartAxisGridStyle Opacity(ChartAxisGridStyle chartAxisGridStyle, double? value)` [#](#method-opacity-chartforgex-core-chartaxisgridstyle-nullable-system-double) 

Sets [ChartAxisGridStyle.Opacity](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets major line opacity from zero to one, or null for the chart policy.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value double? required**

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { Opacity = value };    chartAxisGridStyle.Opacity(value);
```

 `public static ChartAxisGridStyle ShowBands(ChartAxisGridStyle chartAxisGridStyle, bool value = true)` [#](#method-showbands-chartforgex-core-chartaxisgridstyle-boolean) 

Sets [ChartAxisGridStyle.ShowBands](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets whether every other interval between adjacent major ticks is filled.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { ShowBands = value };    chartAxisGridStyle.ShowBands(value);
```

 `public static ChartAxisGridStyle ShowLines(ChartAxisGridStyle chartAxisGridStyle, bool? value = true)` [#](#method-showlines-chartforgex-core-chartaxisgridstyle-nullable-system-boolean) 

Sets [ChartAxisGridStyle.ShowLines](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets whether this axis draws grid lines, or null to follow the chart's horizontal and vertical line policy.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { ShowLines = value };    chartAxisGridStyle.ShowLines(value);
```

 `public static ChartAxisGridStyle StrokeWidth(ChartAxisGridStyle chartAxisGridStyle, double? value)` [#](#method-strokewidth-chartforgex-core-chartaxisgridstyle-nullable-system-double) 

Sets [ChartAxisGridStyle.StrokeWidth](/api/chartforgex-core-chartaxisgridstyle/): Gets or sets the line width in drawing units, or null for the chart policy.

Parameters

**chartAxisGridStyle ChartForgeX.Core.ChartAxisGridStyle required**

The instance.

**value double? required**

The value.

Returns

 `ChartAxisGridStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartAxisGridStyle { StrokeWidth = value };    chartAxisGridStyle.StrokeWidth(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:EFD01C14DDC5F5C86938E7C8315F46AAF0B719C4222E57EFA4078B4168A0EECE -->
