Skip to main content
A newer version of this page is available. .

TdxChartAxisCompareStringValuesEvent Type

The procedural type for axis string comparison events.

Declaration

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

Parameters

Name Type Description
Sender TdxChartCustomAxis

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 Value Description
-1 or other negative integer value AValue1 is positioned before AValue2.
0 AValue1 and AValue2 are considered equal. Both values retain their positions.
1 or other positive integer value AValue1 is positioned after AValue2.

The OnCompareValues event references the TdxChartAxisCompareStringValueEvent procedural type.

See Also