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
fileNamestringName of the file to find the text.
textstringText to find.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
searchISearchReceives
ISearchobject 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
fileNamestringstringsITextStringstextstringoptionsSearchOptionsexpressionRegexsearchISearch
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
fileNamestringstringsITextStringstextstringoptionsSearchOptionsexpressionRegexsearchISearchpositionPoint