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.GetItemIndexFromDistance(Integer,Integer) Method

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

#Declaration

Delphi
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