Gets the index of a data point returned by a hit test (if any).
Data Point Index
Visual Basic (Declaration) | |
---|---|
Public Property PointIndex As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public int PointIndex {get; set;} |
Return Value
Represents the index of a data point returned by a hit test. Defaults to negative one.If a data point is at the location that is checked by a hit test then this property will be the zero-based index of that data point, otherwise it will be negative one.
All data points are stored in a data points collection (which is exposed as the Points collection of a Series object), and the index of the data points is zero-based.
To determine the series that the data point belongs to use the Series property.
For more information see the Selection of Chart Elements and Drilldown topic.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family