vcl-dxchartcore-073860a8.md
Enumerates available series point targeting modes for crosshair lines in XY diagrams.
TdxChartCrosshairSnapToPointMode = (
Argument,
Value,
NearestToCursor
);
| 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:
|
|
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.
The TdxChartCrosshairOptions.SnapToPointMode property references the TdxChartCrosshairSnapToPointMode type.
See Also
TdxChartCrosshairSnapToSeriesMode Type