Method FindText
FindText(string, string, SearchOptions, Regex, out ISearch)
Searches for first occurrence of the given text within specified file with specified options using specified regular expression and if succeed replaces it by specified string.
public virtual bool FindText(string fileName, string text, SearchOptions options, Regex expression, out ISearch search)
Parameters
fileName
stringName of the file to find the text.
text
stringText to find.
options
SearchOptionsRepresents options to search text.
expression
RegexRepresents a regular expression to find text.
search
ISearchReceives
ISearch
object where text was found.
Returns
- bool
True if succeed; otherwise false.
FindText(string, ITextStrings, string, SearchOptions, Regex, out ISearch)
protected virtual bool FindText(string fileName, ITextStrings strings, string text, SearchOptions options, Regex expression, out ISearch search)
Parameters
fileName
stringstrings
ITextStringstext
stringoptions
SearchOptionsexpression
Regexsearch
ISearch
Returns
FindText(string, ITextStrings, string, SearchOptions, Regex, out ISearch, Point)
protected virtual bool FindText(string fileName, ITextStrings strings, string text, SearchOptions options, Regex expression, out ISearch search, Point position)
Parameters
fileName
stringstrings
ITextStringstext
stringoptions
SearchOptionsexpression
Regexsearch
ISearchposition
Point