.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SubDocument.ReplaceAll Method

Name Parameters Description
ReplaceAll(String, String, SearchOptions) textToFind, replaceWith, options Finds all occurrences of the search string in the current document, and replaces them with the replacement string.
ReplaceAll(String, String, SearchOptions, DocumentRange) textToFind, replaceWith, options, range Finds all occurrences of the search string in the specified range, and replaces them with the replacement string.
ReplaceAll(Regex, String) regex, replaceWith Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement string.
ReplaceAll(Regex, String, DocumentRange) regex, replaceWith, range Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement string.