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

TdxChartCrosshairStickyLines Enum

Enumerates crosshair line display modes.

#Declaration

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

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.

#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