Returns series index and distance to the closest data element in the group given client coordinates.
[Visual Basic]
Public Function CoordToSeriesIndex( _
ByVal XCoord As Integer, _
ByVal YCoord As Integer, _
ByVal element As PlotElementEnum, _
ByRef SeriesIndex As Integer, _
ByRef Distance As Integer _
) As Boolean
[C#]
public bool CoordToSeriesIndex(
int XCoord,
int YCoord,
PlotElementEnum element,
ref int SeriesIndex,
ref int Distance
);
[Delphi]
public function CoordToSeriesIndex(
XCoord: Int32;
YCoord: Int32;
element: PlotElementEnum;
var SeriesIndex: Int32;
var Distance: Int32
): Boolean;
Parameters
XCoord
X client coordinate.
YCoord
Y client coordinate.
element
Element parameter indicates which plot element is used.
SeriesIndex
Data series index.
Distance
Distance to the closest data point.
Return Value
The return value indicates successful calculation.
Remarks
Mouse coordinates are given in client coordinates.
See Also
ChartGroup Class | ChartGroup Members | C1.Win.C1Chart Namespace | ChartGroup Class
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |