Skip to main content

TdxSpreadSheetTableItems.GetNextVisibleItemIndex(Integer,Boolean) Method

Returns the index of the visible table item that is nearest to the specified table item within the table item collection.

Declaration

function GetNextVisibleItemIndex(AIndex: Integer; AGoForward: Boolean): Integer; overload;

Parameters

Name Type
AIndex Integer
AGoForward Boolean

Returns

Type
Integer

Remarks

Call this function to obtain the index of the visible table items that are nearest to the inspected table item whose zero-based index is specified as the AIndex parameter.

Pass True as the AGoForward parameter to search for the nearest visible table item with greater index values than the inspected table item has (AIndex). Otherwise, the GetNextVisibleItemIndex function searches for the nearest visible table item with lesser or greater index values.

See Also