Skip to main content

TdxSpreadSheetTableItems.GetItemIndexFromDistance(Integer,Integer) Method

Returns the index of a table item object located at the specified distance from another table item.

Declaration

function GetItemIndexFromDistance(AStartIndex: Integer; ADistance: Integer): Integer;

Parameters

Name Type
AStartIndex Integer
ADistance Integer

Returns

Type
Integer

Remarks

Call this function to obtain an index of the table item located at the absolute distance (in pixels), passed as the ADistance parameter, from another table item whose index is passed as the AStartIndex parameter.

To get the distance in pixels between two specified table items, call the GetDistance function.

See Also