Skip to content
ChartForgeX
Class

ChartGridLineStyle

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Defines reusable visual tokens for cartesian grid and guide lines.

Inheritance

  • object
  • ChartGridLineStyle

Usage

Explore 37 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 18

Constructors

public ChartGridLineStyle() #

Methods

public ChartGridLineStyle Clone() #

Creates a copy that can be safely reused and customized.

public static ChartGridLineStyle DashboardVerticalGuides() #

Creates a dashboard guide style with vertical dashed category guides.

public static ChartGridLineStyle Default() #

Creates the default cartesian grid style.

Properties

public bool ShowHorizontalLines { get; set; } #

Gets or sets whether horizontal value grid lines are drawn.

public bool ShowVerticalLines { get; set; } #

Gets or sets whether vertical category grid lines are drawn.

public double HorizontalOpacity { get; set; } #

Gets or sets horizontal grid line opacity.

public double VerticalOpacity { get; set; } #

Gets or sets vertical grid line opacity.

public double StrokeWidth { get; set; } #

Gets or sets grid line stroke width.

public double Dash { get; set; } #

Gets or sets the dash length. Zero renders solid lines.

public double Gap { get; set; } #

Gets or sets the dash gap length.

Extension Methods

Dash 2 overloads
public static ChartGridLineStyle Dash(ChartGridLineStyle chartGridLineStyle, double dash, double gap) #

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

Parameters

chartGridLineStyle ChartForgeX.Core.ChartGridLineStyle required
dash double required
gap double required
public static ChartGridLineStyle Dash(ChartGridLineStyle chartGridLineStyle, double value) #

Sets ChartGridLineStyle.Dash: 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

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { Dash = value };    chartGridLineStyle.Dash(value);
public static ChartGridLineStyle Gap(ChartGridLineStyle chartGridLineStyle, double value) #

Sets ChartGridLineStyle.Gap: 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

// C# initializer or property                                       // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { Gap = value };    chartGridLineStyle.Gap(value);
public static ChartGridLineStyle HorizontalOpacity(ChartGridLineStyle chartGridLineStyle, double value) #

Sets ChartGridLineStyle.HorizontalOpacity: 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

// 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) #

Sets ChartGridLineStyle.ShowHorizontalLines: 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

// 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) #

Sets ChartGridLineStyle.ShowVerticalLines: 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

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { ShowVerticalLines = value };    chartGridLineStyle.ShowVerticalLines(value);
public static ChartGridLineStyle StrokeWidth(ChartGridLineStyle chartGridLineStyle, double value) #

Sets ChartGridLineStyle.StrokeWidth: 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

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartGridLineStyle { StrokeWidth = value };    chartGridLineStyle.StrokeWidth(value);
public static ChartGridLineStyle VerticalOpacity(ChartGridLineStyle chartGridLineStyle, double value) #

Sets ChartGridLineStyle.VerticalOpacity: 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

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