Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetTableItems.GetDistance(Integer,Integer) Method

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

#Declaration

Delphi
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