TdxChartHitTest.Axis Property
Provides access to the axis to which the inspected point belongs.
Declaration
property Axis: TdxChartCustomAxis read;
Property Value
Type | Description |
---|---|
TdxChartCustomAxis | The currently inspected primary or secondary axis. Cast the property value to the corresponding terminal axis class to access all public API members. Call the This property returns |
Remarks
You can use the Axis
property to identify and access an axis at the inspected point; that is, when the HitCode property returns one of the following values:
- Axis
The inspected point belongs to an axis in an XY diagram.
You can use Axis and Diagram properties to access the inspected axis and its parent diagram, respectively.
- AxisValueLabel
The inspected point belongs to an axis value label in an XY diagram.
You can use AxisValueLabel, Axis, and Diagram properties to access the inspected value label and its parent axis and diagram, respectively.
- AxisTitle
The inspected point belongs to an axis title.
You can use Title and Axis properties to access the inspected title and its parent axis, respectively. Cast the Title property value to the TdxChartAxisTitle class to access all public API members of the inspected axis title.
When the inspected point belongs to an axis, you can also use the Diagram property to access the parent XY diagram of the inspected axis.