Back to Devexpress

ChartHitInfo.InSeriesPoint Property

corelibraries-devexpress-dot-xtracharts-dot-charthitinfo-cd49b34c.md

latest4.5 KB
Original Source

ChartHitInfo.InSeriesPoint Property

Returns a value indicating whether the cursor is over a series point or not.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public bool InSeriesPoint { get; }
vb
Public ReadOnly Property InSeriesPoint As Boolean

Property Value

TypeDescription
Boolean

true if the cursor is over a series point; otherwise false.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the InSeriesPoint 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-dashboard-custom-items/CS/TutorialsCustomItems/CustomItems/FunnelItemControlProvider.cs#L117

csharp
ChartHitInfo hitInfo = chart.CalcHitInfo(e.Location);
if (hitInfo.InSeriesPoint)
{

winforms-chart-draw-a-custom-legend-marker-for-a-series-point/CS/CustomSeriesPointDrawingSample/Form1.cs#L96

csharp
private void OnObjectHotTracked(object sender, HotTrackEventArgs e) {
    trackedPointArgument = e.HitInfo.InSeriesPoint ? e.HitInfo.SeriesPoint.Argument : null;
    chart.Invalidate();

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/Funnel/FunnelItemControlProvider.cs#L116

csharp
ChartHitInfo hitInfo = chart.CalcHitInfo(e.Location);
if(hitInfo.InSeriesPoint) {
    if(Interactivity.CanPerformDrillDown)

winforms-dashboard-custom-items/VB/TutorialsCustomItems/CustomItems/FunnelItemControlProvider.vb#L113

vb
Dim hitInfo As ChartHitInfo = chart.CalcHitInfo(e.Location)
If hitInfo.InSeriesPoint Then
    If Interactivity.CanPerformDrillDown Then

winforms-chart-draw-a-custom-legend-marker-for-a-series-point/VB/CustomSeriesPointDrawingSample/Form1.vb#L98

vb
Private Sub OnObjectHotTracked(ByVal sender As Object, ByVal e As DevExpress.XtraCharts.HotTrackEventArgs)
    Me.trackedPointArgument = If(e.HitInfo.InSeriesPoint, e.HitInfo.SeriesPoint.Argument, Nothing)
    Me.chart.Invalidate()

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/Funnel/FunnelItemControlProvider.vb#L125

vb
Dim hitInfo As ChartHitInfo = chart.CalcHitInfo(e.Location)
If hitInfo.InSeriesPoint Then
    If Interactivity.CanPerformDrillDown Then

See Also

ChartHitInfo Class

ChartHitInfo Members

DevExpress.XtraCharts Namespace