[]
        
(Showing Draft Content)

C1.Win.C1Chart.ChartGroup.CoordToSeriesIndex

CoordToSeriesIndex Method

CoordToSeriesIndex(int, int, PlotElementEnum, ref int, ref int)

Returns series index and distance to the closest data element in the group given client coordinates.

Declaration
public bool CoordToSeriesIndex(int XCoord, int YCoord, PlotElementEnum element, ref int SeriesIndex, ref int Distance)
Parameters
Type Name Description
int XCoord

X client coordinate.

int YCoord

Y client coordinate.

PlotElementEnum element

Element parameter indicates which plot element is used.

int SeriesIndex

Data series index.

int Distance

Distance to the closest data point.

Returns
Type Description
bool

The return value indicates successful calculation.

Remarks

Mouse coordinates are given in client coordinates.

See Also