Back to Devexpress

TdxChartAxisCompareStringValuesEvent Type

vcl-dxchartxydiagram-59c2df5e.md

latest1.7 KB
Original Source

TdxChartAxisCompareStringValuesEvent Type

The procedural type for axis string comparison events.

Declaration

delphi
TdxChartAxisCompareStringValuesEvent = procedure(Sender: TdxChartCustomAxis; const AValue1: string; const AValue2: string; var ACompare: Integer) of object;

Parameters

NameTypeDescription
SenderTdxChartCustomAxis

Provides access to the axis that raised a string comparison event.

| | AValue1 | string |

The string value or display text of the first compared axis value.

| | AValue2 | string |

The string value or display text of the second compared axis value.

| | ACompare | Integer |

The comparison result. Refer to the Remarks section for details.

|

Remarks

The following table explains what ACompare parameter values correspond to different comparison results.

ACompare ValueDescription
-1 or other negative integer valueAValue1 is positioned before AValue2.
0AValue1 and AValue2 are considered equal. Both values retain their positions.
1 or other positive integer valueAValue1 is positioned after AValue2.

The OnCompareValues event references the TdxChartAxisCompareStringValueEvent procedural type.

See Also

dxChartXYDiagram Unit