vcl-dxchartxydiagram-59c2df5e.md
The procedural type for axis string comparison events.
TdxChartAxisCompareStringValuesEvent = procedure(Sender: TdxChartCustomAxis; const AValue1: string; const AValue2: string; var ACompare: Integer) of object;
| 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.
|
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