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

    Enumerates crosshair line display modes.

    Declaration

    TdxChartCrosshairStickyLines = (
        None,
        SingleAxis,
        Crosshair
    );

    Members

    Name Description Example
    None

    Argument and value crosshair lines always follow the mouse pointer as a crosshair.

    This mode is compatible with all possible SnapToPointMode property values.

    VCL Chart Control: Both Argument and Value Lines Always Follow the Mouse Pointer

    SingleAxis

    Default. Argument or value lines stick to target series points if the SnapToPointMode property is set to Argument or Value, respectively.

    The StickyLines property setter changes the SnapToPointMode property value from NearestToCursor to Argument because the SingleAxis mode is incompatible with the point-based targeting mode.

    VCL Chart Control: Argument Lines Stick to Target Series Points

    Crosshair

    Both argument and value crosshair lines snap to target series points if the SnapToPointMode property is set to NearestToCursor.

    This mode is compatible with all possible SnapToPointMode property values.

    VCL Chart Control: Both Argument and Value Lines Stick to Target Series Points

    Remarks

    Different crosshair line display modes allow you to change what crosshair lines snap to target series points.

    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 TdxChartCrosshairStickyLines Type Reference

    The TdxChartCrosshairOptions.StickyLines property references the TdxChartCrosshairStickyLines type.

    See Also