ComponentOne Chart for .NET (2.0) Search HelpCentral 

ChartGroup.CoordToPointIndex Method

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

[Visual Basic]

Public Function CoordToPointIndex( _

ByVal XCoord As Integer, _

ByVal YCoord As Integer, _

ByVal element As PlotElementEnum, _

ByVal SeriesIndex As Integer, _

ByRef PointIndex As Integer, _

ByRef Distance As Integer _

) As Boolean

[C#]

public bool CoordToPointIndex(

int XCoord,

int YCoord,

PlotElementEnum element,

int SeriesIndex,

ref int PointIndex,

ref int Distance

);

[Delphi]

public function CoordToPointIndex(

XCoord: Int32;

YCoord: Int32;

element: PlotElementEnum;

SeriesIndex: Int32;

var PointIndex: 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.

PointIndex

Data point index of the closest data point.

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.