GemBox.Spreadsheet

CellRange.FindText Method 

Finds the first occurrence of the specified text in the current cell range.

public bool FindText(
   string text,
   bool matchCase,
   bool matchEntireCellContents,
   out int row,
   out int column
);

Parameters

text
Test to search.
matchCase
True to match exact case, false otherwise.
matchEntireCellContents
True to match entire cell contents, false otherwise.
row
Index of the row where the text was found or -1 if no text was found.
column
Index of the column where the text was found or -1 if no text was found.

Return Value

True if text is found, false otherwise.

See Also

CellRange Class | GemBox.Spreadsheet Namespace