Finds the first occurrence of the specified text in the current cell range.
Namespace: SautinSoft.ExcelAssembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2025.6.5
Syntaxpublic bool FindText(
string text,
bool matchCase,
bool matchEntireCellContents,
out int row,
out int column
)
Public Function FindText (
text As String,
matchCase As Boolean,
matchEntireCellContents As Boolean,
<OutAttribute> ByRef row As Integer,
<OutAttribute> ByRef column As Integer
) As Boolean
Parameters
- text String
- Test to search.
- matchCase Boolean
- True to match exact case, false otherwise.
- matchEntireCellContents Boolean
- True to match entire cell contents, false otherwise.
- row Int32
- Index of the row where the text was found or -1 if no text was found.
- column Int32
- Index of the column where the text was found or -1 if no text was found.
Return Value
BooleanTrue if text is found,
false otherwise.
See Also