vcl-dxchartcore-04ed9fec.md
Enumerates crosshair line display modes.
TdxChartCrosshairStickyLines = (
None,
SingleAxis,
Crosshair
);
| 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.
|
|
| 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.
|
|
| 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.
|
|
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.
The TdxChartCrosshairOptions.StickyLines property references the TdxChartCrosshairStickyLines type.
See Also
TdxChartCrosshairSnapToPointMode Type