Method ReplaceAll
ReplaceAll(ISearch, string, string, SearchOptions, Regex, out int, out bool)
Replaces all occurrences of given text within text content determined by ISearch
object by specified replaceWith string.
public virtual bool ReplaceAll(ISearch search, string text, string replaceWith, SearchOptions options, Regex expression, out int count, out bool abort)
Parameters
search
ISearchISearch
object performs search.text
stringText to find.
replaceWith
stringText to replace.
options
SearchOptionsRepresents options to search text.
expression
RegexRepresents a regular expression to find text.
count
intNumber of replaced occurrences.
abort
boolReceives valueiIndicating whether replace action aborted.
Returns
- bool
True if succeed; otherwise false.