Replacer

Replacer class

Provides methods intended to find and replace text in the document.

public static class Replacer

Methods

NameDescription
static Replace(string, string, Regex, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression.
static Replace(string, string, string, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input file.
static Replace(Stream, Stream, SaveFormat, Regex, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression.
static Replace(Stream, Stream, SaveFormat, string, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format.
static Replace(string, string, SaveFormat, Regex, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format.
static Replace(string, string, SaveFormat, string, string)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format.
static Replace(Stream, Stream, SaveFormat, Regex, string, FindReplaceOptions)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options.
static Replace(Stream, Stream, SaveFormat, string, string, FindReplaceOptions)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
static Replace(string, string, SaveFormat, Regex, string, FindReplaceOptions)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options.
static Replace(string, string, SaveFormat, string, string, FindReplaceOptions)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.

See Also