alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartCrosshairLine

    Provides options to customize the crosshair line.

    Inheritance
    System.Object
    SfBaseComponent
    ChartSubComponent
    ChartDefaultBorder
    ChartCrosshairLine
    Implements
    System.IAsyncDisposable
    Inherited Members
    SfBaseComponent.DisposeAsync()
    Namespace: Syncfusion.Blazor.Toolkit.Charts
    Assembly: Syncfusion.Blazor.Toolkit.dll
    Syntax
    public class ChartCrosshairLine : ChartDefaultBorder, IAsyncDisposable, ISubcomponentTracker

    Constructors

    ChartCrosshairLine()

    Declaration
    public ChartCrosshairLine()

    Properties

    Color

    Gets or sets the color of the crosshair line. Accepts values in hex or rgba as valid CSS color strings.

    Declaration
    public override string Color { get; set; }
    Property Value
    Type Description
    System.String

    A string specifying the color of the crosshair line. The default value is inherited from Color.

    Overrides
    ChartDefaultBorder.Color
    Remarks

    Use this to match the crosshair line to your app's color scheme.

    Examples
    <ChartCrosshairSettings Enable="true">
        <ChartCrosshairLine Width="2" Color="blue"></ChartCrosshairLine>
    </ChartCrosshairSettings>

    Width

    Gets or sets the width of the crosshair line in pixels.

    Declaration
    public override double Width { get; set; }
    Property Value
    Type Description
    System.Double

    A double value representing the width of the crosshair line. If not set, the default is inherited from Width.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    Adjust the width to control the line thickness.

    Examples
    <ChartCrosshairSettings Enable="true">
        <ChartCrosshairLine Width="2" Color="blue"></ChartCrosshairLine>
    </ChartCrosshairSettings>

    Implements

    System.IAsyncDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved