Skip to main content

TdxChartHitTest.LegendItem Property

Provides access to the legend item to which the inspected point belongs.

Declaration

property LegendItem: TdxChartLegendItem read;

Property Value

Type Description
TdxChartLegendItem

The currently inspected legend item.

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

Remarks

You can use the LegendItem property to identify and access a legend item at the inspected point; that is, when the HitCode property returns TdxChartHitCode.LegendItem. In this case, you can also use the Legend property to access the parent legend pane of the inspected item.

VCL Chart Control: An Inspected Legend Item

See Also