HotTrackEventArgs.AdditionalObject Property
Provides access to an object related to the object being hit. The returned value depends on the HotTrackEventArgs.Object type and hit point location.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v26.1.dll
NuGet Package: DevExpress.Charts
Declaration
Property Value
| Type | Description |
|---|---|
| Object | A Object value representing an additional object that relates to the one being hit. |
Remarks
Use the AdditionalObject property, to access AxisTitle, AxisLabelItem and SeriesPoint objects in the ChartControl.ObjectHotTracked event handler, when the hit point falls within a region that represents the corresponding object on a diagram.
In situations different from those described above (e.g. when a user clicks another object), the AdditionalObject property returns null (Nothing in Visual Basic).
Example
This example demonstrates how you can obtain an internal value of an AxisLabelItem (returned by the HotTrackEventArgs.AdditionalObject property) in the ChartControl.ObjectHotTracked event handler.
private void chartControl1_ObjectHotTracked(object sender, HotTrackEventArgs e) {
if (e.AdditionalObject is AxisLabelItem) {
MessageBox.Show(((AxisLabelItem)e.AdditionalObject).AxisValueInternal.ToString());
}
}