HitTestResult.Object Property


Gets or sets the object, if any, returned by a hit test.

 property System::Object ^ Object { System::Object ^ get(); void set(System::Object ^ value); };
public object Object { get; set; }
member this.Object : obj with get, set
Public Property Object As Object

Property Value

An object of type Object, otherwise null.


If a chart element is located at the point that is checked by the hit test, this property will reference that chart element, otherwise the value of this property will be null.


If a data point is returned by the hit test, this property will still return a null. To obtain information about the data point, use the PointIndex and Series properties instead.

Applies to