Skip to main content

TdxSpreadSheetTableItems.GetDistance(Integer,Integer) Method

Returns the absolute distance (in pixels) between two specified table items.

Declaration

function GetDistance(AStartIndex: Integer; AFinishIndex: Integer): Integer;

Parameters

Name Type
AStartIndex Integer
AFinishIndex Integer

Returns

Type
Integer

Remarks

Call this function to get the distance in pixels between the “outside” bounds of two similar table items whose indexes are passed as the AStartIndex and AFinishIndex parameters.

To get the distance between a table item and the top or left edge of the Table View worksheet, invoke the GetPosition function. The GetItemIndexFromDistance function allows you to identify the index of a table item, placed at the specified distance from another table item.

See Also