Method ReplaceAll
ReplaceAll(string, string, out int)
Replaces all occurrences of given text within class text content by specified replaceWith string.
public virtual bool ReplaceAll(string text, string replaceWith, out int count)
Parameters
textstringText to find.
replaceWithstringText to replace.
countintNumber of replaced occurrences.
Returns
- bool
 True if succeed; otherwise false.
ReplaceAll(string, string, SearchOptions, out int)
Replaces all occurrences of given text within text content by specified replaceWith string.
public virtual bool ReplaceAll(string text, string replaceWith, SearchOptions options, out int count)
Parameters
textstringText to find.
replaceWithstringText to replace.
optionsSearchOptionsRepresents options to search text.
countintNumber of replaced occurrences.
Returns
- bool
 True if succeed; otherwise false.
ReplaceAll(string, string, SearchOptions, Regex, out int)
Replaces all occurrences of given text within class text content by specified replaceWith string.
public virtual bool ReplaceAll(string text, string replaceWith, SearchOptions options, Regex expression, out int count)
Parameters
textstringText to find.
replaceWithstringText to replace.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
countintNumber of replaced occurrences.
Returns
- bool
 True if succeed; otherwise false.
ReplaceAll(string, string, SearchOptions, Regex, out int, out bool)
Replaces all occurrences of given text within class text content by specified replaceWith string.
public virtual bool ReplaceAll(string text, string replaceWith, SearchOptions options, Regex expression, out int count, out bool abort)
Parameters
textstringText to find.
replaceWithstringText to replace.
optionsSearchOptionsRepresents options to search text.
expressionRegexRepresents a regular expression to find text.
countintNumber of replaced occurrences.
abortboolIndicates whether replace action aborted.
Returns
- bool
 True if succeed; otherwise false.