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
searchISearchISearchobject performs search.textstringText to find.
replaceWithstringText to replace.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
countintNumber of replaced occurrences.
abortboolReceives valueiIndicating whether replace action aborted.
Returns
- bool
True if succeed; otherwise false.