[]
        
(Showing Draft Content)

C1.Win.C1Chart.ChartGroup.CoordToPointIndex

CoordToPointIndex Method

CoordToPointIndex(int, int, PlotElementEnum, int, ref int, ref int)

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

Declaration
public bool CoordToPointIndex(int XCoord, int YCoord, PlotElementEnum element, int SeriesIndex, ref int PointIndex, 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 PointIndex

Data point index of the closest data point.

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