Version

GetDistanceToIndexHelper Method

Helps determine the distance to an index from a world position. Distance is not necessarily in pixels.
Syntax
'Declaration
 
Protected Function GetDistanceToIndexHelper( _
   ByVal world As Point, _
   ByVal index As Integer, _
   ByVal axis As Axis, _
   ByVal scalerParams As ScalerParams, _
   ByVal offset As Double, _
   ByVal count As Integer, _
   ByVal getExactUnsortedIndex As Func(Of Point,Double) _
) As Double
protected double GetDistanceToIndexHelper( 
   Point world,
   int index,
   Axis axis,
   ScalerParams scalerParams,
   double offset,
   int count,
   Func<Point,double> getExactUnsortedIndex
)

Parameters

world
The world position to get a distance to.
index
The index to get a distance from.
axis
The axis the represents the indexes.
scalerParams
The scaler parameters of the axis.
offset
The category offset, if any.
count
The number of items in the data source.
getExactUnsortedIndex
Gets an exact unsorted index for a sorted axis.

Return Value

The distance value.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also