Skip to main content

DataPointHoveredEventArgs Class

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts
public class DataPointHoveredEventArgs

Inheritance: EventArgs -> DataPointHoveredEventArgs

Constructors

NameDescription
DataPointHoveredEventArgsInitializes 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

NameDescription
DataPointIndexGets the index of the hovered data point, or -1 when unhovered.
SourceGets 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; }