Back to Devexpress

ChartHitInfo.SeriesPoint Property

corelibraries-devexpress-dot-xtracharts-dot-charthitinfo-95951d30.md

latest3.3 KB
Original Source

ChartHitInfo.SeriesPoint Property

Gets an object which represents the topmost series point located under the test point.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public SeriesPoint SeriesPoint { get; }
vb
Public ReadOnly Property SeriesPoint As SeriesPoint

Property Value

TypeDescription
SeriesPoint

A SeriesPoint object which represents the topmost series point under the test point.

|

Remarks

Use the SeriesPoint property to access the series point located under the test point if the ChartHitInfo.InSeries property returns true. Note that if the ChartHitInfo.InSeries is false , then the SeriesPoint property returns null ( Nothing in Visual Basic).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SeriesPoint property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chart-make-points-in-a-chartcontrol-adjustable-interactively/CS/Form1.cs#L15

csharp
private void chartControl1_ObjectHotTracked(object sender, HotTrackEventArgs e) {
    if(e.HitInfo.SeriesPoint != null)
        selectedPoint = e.HitInfo.SeriesPoint;

winforms-chart-make-points-in-a-chartcontrol-adjustable-interactively/VB/Form1.vb#L20

vb
Private Sub chartControl1_ObjectHotTracked(ByVal sender As Object, ByVal e As HotTrackEventArgs)
    If e.HitInfo.SeriesPoint IsNot Nothing Then selectedPoint = e.HitInfo.SeriesPoint
    If selectedPoint IsNot Nothing AndAlso isPressed Then

See Also

HitObject

HitObjects

ChartHitInfo Class

ChartHitInfo Members

DevExpress.XtraCharts Namespace