The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SubDocument.ReplaceAll Method

Name Parameters Description
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.

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.