Method ReplaceAll
ReplaceAll(string, string, out int)
When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.
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)
When implemented by a class, replaces all occurrences of given text within text content by specified replaceWith string.
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)
When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.
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)
When implemented by a class, replaces all occurrences of given text within class text content by specified replaceWith string.
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.