Skip to main content
All docs
V25.1
  • TdxChartCrosshairSnapToPointMode Enum

    Enumerates available series point targeting modes for crosshair lines in XY diagrams.

    Declaration

    TdxChartCrosshairSnapToPointMode = (
        Argument,
        Value,
        NearestToCursor
    );

    Members

    Name Description Example
    Argument

    Default. Crosshair Cursor targets a series point near the vertical line that crosses the mouse pointer position within the diagram area.

    Note

    Argument and value lines switch places in an XY diagram whose Rotated property is set to True.

    This mode is compatible with all possible SnapToSeriesMode and StickyLines property values.

    VCL Chart Control: Snap by Argument Mode

    Value

    Crosshair Cursor targets a series point near the horizontal line that crosses the mouse pointer position within the diagram area.

    Note

    Argument and value lines switch places in an XY diagram whose Rotated property is set to True.

    This mode is compatible with all possible SnapToSeriesMode and StickyLines property values.

    VCL Chart Control: Snap By Value Mode

    NearestToCursor

    Crosshair Cursor targets a series point near the mouse pointer position within the diagram area.

    The SnapToPointMode property setter updates SnapToSeriesMode and StickyLines property values when you enable the NearestToCursor mode because it is incompatible with single-line point targeting modes:

    VCL Chart Control: Snap to the Nearest Series Point Mode

    Remarks

    Different snap to point modes allow you to change how the Chart control detects target series points for crosshair lines and the crosshair label.

    Note

    TdxChartCrosshairSnapToPointMode is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxChartCrosshairSnapToPointMode.NearestToCursor (in Delphi) or TdxChartCrosshairSnapToPointMode::NearestToCursor (in C++Builder) to refer to the NearestToCursor value in code.

    Direct TdxChartCrosshairSnapToPointMode Type Reference

    The TdxChartCrosshairOptions.SnapToPointMode property references the TdxChartCrosshairSnapToPointMode type.

    See Also