menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StockChartCrosshairSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StockChartCrosshairSettings

    To specify customization options for stock chart crosshair.

    Inheritance
    System.Object
    StockChartCrosshairSettings
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class StockChartCrosshairSettings : OwningComponentBase

    Constructors

    StockChartCrosshairSettings()

    Declaration
    public StockChartCrosshairSettings()

    Properties

    DashArray

    DashArray for crosshair.

    Declaration
    public string DashArray { get; set; }
    Property Value
    Type
    System.String

    Enable

    If set to true, crosshair line becomes visible.

    Declaration
    public bool Enable { get; set; }
    Property Value
    Type
    System.Boolean

    LineType

    Specifies the line type. Horizontal mode enables the horizontal line and Vertical mode enables the vertical line. They are, None: Hides both vertical and horizontal crosshair lines. Both: Shows both vertical and horizontal crosshair lines. Vertical: Shows the vertical line. Horizontal: Shows the horizontal line.

    Declaration
    public LineType LineType { get; set; }
    Property Value
    Type
    LineType

    SnapToData

    Gets or sets a value indicating whether the crosshair snapToData is enabled.

    Declaration
    public bool SnapToData { get; set; }
    Property Value
    Type Description
    System.Boolean

    true If set to true, the horizontal crosshair snaps to the nearest data point; otherwise, false. The default value is false.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved