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
text
stringText to find.
replaceWith
stringText to replace.
count
intNumber 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
text
stringText to find.
replaceWith
stringText to replace.
options
SearchOptionsRepresents options to search text.
count
intNumber 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
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.
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
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
boolIndicates whether replace action aborted.
Returns
- bool
True if succeed; otherwise false.