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

TdxChartHitTest.Title Property

Provides access to the axis, chart, diagram, legend, or series title to which the inspected point belongs.

Declaration

property Title: TdxChartVisualElementTitle read;

Property Value

Type Description
TdxChartVisualElementTitle

The currently inspected title. This property returns nil (in Delphi) or nullptr (in C++Builder) if the inspected point is not within the area occupied by a title.

Remarks

You can use the Title property to identify and access an axis, chart, diagram, legend, or series title at the inspected point; that is, when the HitCode property returns one of the following values:

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.

ChartTitle

The inspected point belongs to a chart title.

You can use the Title property to access the inspected chart title. Cast the property value to the TdxChartTitle class to access all public API members of the inspected chart title.

DiagramTitle

The inspected point belongs to a diagram title.

You can use Title and Diagram properties to access the inspected title and its parent diagram, respectively. Cast the Title property value to the TdxChartDiagramTitle class to access all public API members of the inspected chart title.

LegendTitle

The inspected point belongs to a legend title.

You can use Title and Legend properties to access the inspected title and its parent legend pane, respectively. Cast the Title property to the TdxChartLegendTitle class to access all public API members of the inspected legend pane title.

  • If the parent legend pane of the inspected title belongs to the Chart control, you can cast the Legend property value to the TdxChartLegend class to access all public API members of the parent legend pane.
  • If the parent legend pane of the inspected title belongs to a diagram, you can cast the Legend property value to the TdxChartDiagramLegend class to access all public API members of the parent legend pane. In addition, you can use the Diagram property to access the parent diagram of the inspected title’s parent legend pane.
SeriesTitle

The inspected point belongs to a Pie or Doughnut series title.

You can use Title, Series, and Diagram properties to access the inspected title and its parent series and diagram, respectively. Cast the Title property value to the TdxChartSeriesTitle class to access all public API members of the inspected series title.

See Also