Skip to main content
Table of Contents

TTMSFNCDataGrid.FindAll Method

Counts all occurrences of a text and returns the first matching cell.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

FMX.TMSFNCDataGrid.hppPascalC++
function FindAll(AText: string; AParameters: TTMSFNCDataGridDataFindParameters; var AResults: Integer): TTMSFNCDataGridCellCoord;
TTMSFNCDataGridCellCoord __fastcall FindAll(System::UnicodeString AText, TTMSFNCDataGridDataFindParameters AParameters, int &AResults);

Parameters

Name Description
AText Text to search for.
AParameters Search options controlling case sensitivity, direction and scope. The auto-goto option is removed after the first match so counting does not move the focus through every match.
AResults Receives the total number of matches, or 0 when nothing matches.

Returns

The first matching cell, or (-1, -1) when nothing matches.