Skip to main content
Table of Contents

TTMSFNCTableViewCategories.ItemIndexById Method

Returns the collection index of the category with the given identifier.

API unit family: TMSFNCTableView Declaring type: TTMSFNCTableViewCategories

Syntax

FMX.TMSFNCTableView.hppPascalC++
function ItemIndexById(id: integer): integer;
int __fastcall ItemIndexById(int id);

Parameters

Name Description
id Identifier of the category to find.

Returns

Zero-based index of the matching category, or -1 when not found.