TdxChartHitCode Enum
Enumerates HitTest codes available in the Chart control.
#Declaration
TdxChartHitCode = (
None,
Chart,
ChartTitle,
DiagramTitle,
LegendTitle,
SeriesTitle,
AxisTitle,
TotalLabel,
Legend,
LegendItem,
Axis,
AxisValueLabel,
SeriesValueLabel,
SeriesPoint,
Diagram,
PlotArea,
Series
);
#Members
Name | Description | Example |
---|---|---|
None
|
The inspected point is outside the Chart control client area. This value has the same effect on all Hit |
|
Chart
|
The inspected point is within the Chart control’s client area but does not belong to any particular visual element. This value has the same effect on all Hit |
|
Chart
|
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 Tdx |
|
Diagram
|
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 Tdx |
|
Legend
|
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 Tdx
|
|
Series
|
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 Tdx |
|
Axis
|
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 Tdx |
|
Total
|
The inspected point belongs to a total label of a Pie or Doughnut series. You can use Total |
|
Legend
|
The inspected point is within a chart or diagram legend pane. You can use the Legend property to access the inspected legend pane.
|
|
Legend
|
The inspected point belongs to a legend item in a chart or diagram legend pane. You can use Legend
|
|
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. |
|
Axis
|
The inspected point belongs to an axis value label in an XY diagram. You can use Axis |
|
Series
|
The inspected point is within a series value label. You can use Series |
|
Series
|
The inspected point belongs to a series point in a diagram. You can use Series |
|
Diagram
|
The inspected point is within one of the visible diagrams, but does not belong to any of the diagram elements, such as axes, series, labels, etc. You can use only the Diagram property to access an inspected diagram. Cast the property value to the Tdx |
|
Plot
|
The inspected point is within an XY diagram plot area, but does not belong to any of the diagram elements within it, such as series, series points, value labels, etc. If the Chart control’s Hit You can use only the Diagram property to access the inspected diagram. Cast this property value to the Tdx |
|
Series
|
The inspected point belongs to a series in a diagram. You can use Series and Diagram properties to access the inspected series and its parent diagram, respectively. Cast the Series property value to the Tdx |
#Remarks
HitTest codes allow you to identify different visual Chart elements.
Note
Tdx
is a scoped enumeration type. Use the type name together with a scope resolution token (.
in Delphi or ::
in C++Builder) followed by an enumeration value to refer to this value. For example, use Tdx
(in Delphi) or Tdx
(in C++Builder) to refer to the Series
value in code.
#Direct TdxChartHitCode Type Reference
The TdxChartHitTest.HitCode property references the TdxChartHitCode
type.