# HtmlChartCrosshairOptionsFluent

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

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Modifiers**

static

The fluent methods of [HtmlChartCrosshairOptions](/api/chartforgex-interactivity-html-htmlchartcrosshairoptions/), 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
- HtmlChartCrosshairOptionsFluent

 Filter members   

    Show inherited   

 

## Methods

 `public static HtmlChartCrosshairOptions LineStyle(HtmlChartCrosshairOptions htmlChartCrosshairOptions, HtmlChartCrosshairLineStyle? value)` [#](#method-linestyle-chartforgex-interactivity-html-htmlchartcrosshairoptions-nullable-chartforgex-interactivity-html-htmlchartcrosshairlinestyle) 

Sets [HtmlChartCrosshairOptions.LineStyle](/api/chartforgex-interactivity-html-htmlchartcrosshairoptions/): Gets or sets the pattern of both guide lines. Null retains the default dashed pattern for every palette.

Parameters

**htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required**

The instance.

**value ChartForgeX.Interactivity.Html.HtmlChartCrosshairLineStyle? required**

The value.

Returns

 `HtmlChartCrosshairOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { LineStyle = value };    htmlChartCrosshairOptions.LineStyle(value);
```

 `public static HtmlChartCrosshairOptions ShowLabel(HtmlChartCrosshairOptions htmlChartCrosshairOptions, bool value = true)` [#](#method-showlabel-chartforgex-interactivity-html-htmlchartcrosshairoptions-boolean) 

Sets [HtmlChartCrosshairOptions.ShowLabel](/api/chartforgex-interactivity-html-htmlchartcrosshairoptions/): Gets or sets whether the crosshair includes a target label. The default is true for every palette. The [ChartInteractionFeatures.Crosshair](/api/chartforgex-interactivity-chartinteractionfeatures/) feature controls whether the guide is enabled.

Parameters

**htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `HtmlChartCrosshairOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { ShowLabel = value };    htmlChartCrosshairOptions.ShowLabel(value);
```

 `public static HtmlChartCrosshairOptions Stroke(HtmlChartCrosshairOptions htmlChartCrosshairOptions, ChartColor? value)` [#](#method-stroke-chartforgex-interactivity-html-htmlchartcrosshairoptions-nullable-chartforgex-primitives-chartcolor) 

Sets [HtmlChartCrosshairOptions.Stroke](/api/chartforgex-interactivity-html-htmlchartcrosshairoptions/): Gets or sets the color of both guide lines. Null retains the palette's line color. A transparent color hides the lines while retaining the label and guide identity. Explicit line styling uses a crisp stroke without glow.

Parameters

**htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required**

The instance.

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

The value.

Returns

 `HtmlChartCrosshairOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { Stroke = value };    htmlChartCrosshairOptions.Stroke(value);
```

 `public static HtmlChartCrosshairOptions StrokeWidth(HtmlChartCrosshairOptions htmlChartCrosshairOptions, double? value)` [#](#method-strokewidth-chartforgex-interactivity-html-htmlchartcrosshairoptions-nullable-system-double) 

Sets [HtmlChartCrosshairOptions.StrokeWidth](/api/chartforgex-interactivity-html-htmlchartcrosshairoptions/): Gets or sets the finite, non-negative width of both guide lines in CSS pixels. Null retains the default width. Zero hides the lines without disabling the guide or its label.

Parameters

**htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required**

The instance.

**value double? required**

The value.

Returns

 `HtmlChartCrosshairOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                                    // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { StrokeWidth = value };    htmlChartCrosshairOptions.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:90654C0DF277A1D3BFEB5F2E9259B3BD653C4E9288D51555E763040B83D57F31 -->
