Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartCrosshairSnapToPointMode Enum

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

#Declaration

Delphi
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.

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.

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:

#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