DataPointHoveredEventArgs Class
Definition
Provides data for the Avalonia.Controls.Charts.ChartBase.DataPointHovered event.
public class DataPointHoveredEventArgs
Constructors
| Name | Description |
|---|---|
| DataPointHoveredEventArgs | Initializes a new instance of the Avalonia.Controls.Charts.DataPointHoveredEventArgs class. |
DataPointHoveredEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.Charts.DataPointHoveredEventArgs class.
public DataPointHoveredEventArgs(object source, int dataPointIndex)
Parameters
source object
dataPointIndex int
Properties
| Name | Description |
|---|---|
| DataPointIndex | Gets the index of the hovered data point, or -1 when unhovered. |
| Source | Gets the source object (series or chart) that owns the hovered data point, or null when the pointer leaves all data points. |
DataPointIndex Property
Gets the index of the hovered data point, or -1 when unhovered.
public int DataPointIndex { get; set; }
Source Property
Gets the source object (series or chart) that owns the hovered data point,
or null when the pointer leaves all data points.
public object Source { get; set; }