ComponentOne Chart for .NET (2.0) Search HelpCentral 

ChartGroup.CoordToDataIndex Method

Returns series and point indices and distance to the closest data point in the group given client coordinates.

[Visual Basic]

Public Function CoordToDataIndex( _

ByVal XCoord As Integer, _

ByVal YCoord As Integer, _

ByVal focus As CoordinateFocusEnum, _

ByRef SeriesIndex As Integer, _

ByRef PointIndex As Integer, _

ByRef Distance As Integer _

) As Boolean

[C#]

public bool CoordToDataIndex(

int XCoord,

int YCoord,

CoordinateFocusEnum focus,

ref int SeriesIndex,

ref int PointIndex,

ref int Distance

);

[Delphi]

public function CoordToDataIndex(

XCoord: Int32;

YCoord: Int32;

focus: CoordinateFocusEnum;

var SeriesIndex: Int32;

var PointIndex: Int32;

var Distance: Int32

): Boolean;

Parameters

XCoord

X client coordinate.

YCoord

Y client coordinate.

focus

Focus parameter indicates which coordinate is used.

SeriesIndex

Data series index of the closest data point.

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.