Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartHitTest.LegendItem Property

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

#Declaration

Delphi
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