Skip to main content
All docs
V23.2

TdxChartCrosshairOptions Class

Stores Crosshair Cursor settings for a Chart control.

Declaration

TdxChartCrosshairOptions = class(
    TdxChartVisualElementPersistent
)

Remarks

Crosshair Cursor allows users to obtain additional information on one or more series points based on the mouse pointer position.

VCL Chart Control: A Crosshair Cursor Example in an XY Diagram

Main API Members

The list below outlines key members of the TdxChartCrosshairOptions class that allow you to configure Crosshair Cursor in the Chart control.

ArgumentLines | ValueLines
Allow you to display and configure argument and value crosshair lines.
Labels
Provides access to crosshair label settings.
HighlightPoints
Enables or disables the highlight effect for target series points.
ShowArgumentLabels | ShowValueLabels
Allow you to independently hide or display crosshair axis labels for arguments and values.
SnapToPointMode | SnapToSeriesMode | SnapToOutRangePoints | StickyLines
Configure crosshair line navigation behavior.
Assign
Copies Crosshair Cursor settings between Chart controls.

To see the Crosshair Cursor functionality in action, run the Chart Control demo in the VCL Demo Center installed with compiled VCL DevExpress demos. Hover the mouse pointer over line series in the XY diagram area to display a crosshair label with additional information on target series points.

Download: Compiled VCL Demos

Tip

You can find full source code for the installed compiled Chart control demo in the following folder:

%PUBLIC%\Documents\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressChart

Direct TdxChartCrosshairOptions Class Reference

The TdxChartToolTips.CrosshairOptions property references a TdxChartCrosshairOptions object.

See Also