## Replacer class

Provides methods intended to find and replace text in the document.

```csharp
public class Replacer : Processor
```

## Methods

| Name | Description |
| --- | --- |
| static [Create](../../aspose.words.lowcode/replacer/create/)(*[ReplacerContext](../replacercontext/)*) | Creates new instance of the replacer processor. |
| [Execute](../../aspose.words.lowcode/processor/execute/)() | Execute the processor action. |
| [Execute](../../aspose.words.lowcode/processor/execute/)(*CancellationToken*) | Execute the processor action allowing canceling document processing task using specified cancellation token. |
| [From](../../aspose.words.lowcode/processor/from/)(*Stream*) | Specifies input document for processing. |
| [From](../../aspose.words.lowcode/processor/from/)(*string*) | Specifies input document for processing. |
| [From](../../aspose.words.lowcode/processor/from/)(*Stream, [LoadOptions](../../aspose.words.loading/loadoptions/)*) | Specifies input document for processing. |
| [From](../../aspose.words.lowcode/processor/from/)(*string, [LoadOptions](../../aspose.words.loading/loadoptions/)*) | Specifies input document for processing. |
| [To](../../aspose.words.lowcode/processor/to/)(*string*) | Specifies output file for the processor. |
| [To](../../aspose.words.lowcode/processor/to/)(*List&lt;Stream&gt;, [SaveFormat](../../aspose.words/saveformat/)*) | Specifies output Document streams list. |
| [To](../../aspose.words.lowcode/processor/to/)(*List&lt;Stream&gt;, [SaveOptions](../../aspose.words.saving/saveoptions/)*) | Specifies output Document streams list. |
| [To](../../aspose.words.lowcode/processor/to/)(*Stream, [SaveFormat](../../aspose.words/saveformat/)*) | Specifies output stream for the processor. |
| [To](../../aspose.words.lowcode/processor/to/)(*Stream, [SaveOptions](../../aspose.words.saving/saveoptions/)*) | Specifies output stream for the processor. |
| [To](../../aspose.words.lowcode/processor/to/)(*string, [SaveFormat](../../aspose.words/saveformat/)*) | Specifies output file for the processor. |
| [To](../../aspose.words.lowcode/processor/to/)(*string, [SaveOptions](../../aspose.words.saving/saveoptions/)*) | Specifies output file for the processor. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_17)(*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](../../aspose.words.lowcode/replacer/replace/#replace_16)(*string, string, string, string*) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_2)(*Stream, Stream, [SaveFormat](../../aspose.words/saveformat/), Regex, string*) | 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](../../aspose.words.lowcode/replacer/replace/#replace)(*Stream, Stream, [SaveFormat](../../aspose.words/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 and additional options. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_6)(*Stream, Stream, [SaveOptions](../../aspose.words.saving/saveoptions/), Regex, string*) | 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](../../aspose.words.lowcode/replacer/replace/#replace_4)(*Stream, Stream, [SaveOptions](../../aspose.words.saving/saveoptions/), string, string*) | 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](../../aspose.words.lowcode/replacer/replace/#replace_10)(*string, string, [SaveFormat](../../aspose.words/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 and additional options. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_8)(*string, string, [SaveFormat](../../aspose.words/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 and additional options. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_14)(*string, string, [SaveOptions](../../aspose.words.saving/saveoptions/), 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 and additional options. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_12)(*string, string, [SaveOptions](../../aspose.words.saving/saveoptions/), string, string*) | 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. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_3)(*Stream, Stream, [SaveFormat](../../aspose.words/saveformat/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_1)(*Stream, Stream, [SaveFormat](../../aspose.words/saveformat/), string, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_7)(*Stream, Stream, [SaveOptions](../../aspose.words.saving/saveoptions/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_5)(*Stream, Stream, [SaveOptions](../../aspose.words.saving/saveoptions/), string, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_11)(*string, string, [SaveFormat](../../aspose.words/saveformat/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_9)(*string, string, [SaveFormat](../../aspose.words/saveformat/), string, string, [FindReplaceOptions](../../aspose.words.replacing/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. |
| static [Replace](../../aspose.words.lowcode/replacer/replace/#replace_15)(*string, string, [SaveOptions](../../aspose.words.saving/saveoptions/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/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](../../aspose.words.lowcode/replacer/replace/#replace_13)(*string, string, [SaveOptions](../../aspose.words.saving/saveoptions/), string, string, [FindReplaceOptions](../../aspose.words.replacing/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. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_2)(*Stream, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), Regex, string*) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages)(*Stream, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), string, string*) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_6)(*string, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), Regex, string*) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_4)(*string, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), string, string*) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_3)(*Stream, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/findreplaceoptions/)*) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_1)(*Stream, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), string, string, [FindReplaceOptions](../../aspose.words.replacing/findreplaceoptions/)*) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_7)(*string, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), Regex, string, [FindReplaceOptions](../../aspose.words.replacing/findreplaceoptions/)*) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
| static [ReplaceToImages](../../aspose.words.lowcode/replacer/replacetoimages/#replacetoimages_5)(*string, [ImageSaveOptions](../../aspose.words.saving/imagesaveoptions/), string, string, [FindReplaceOptions](../../aspose.words.replacing/findreplaceoptions/)*) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |

### See Also

* class [Processor](../processor/)
* namespace [Aspose.Words.LowCode](../../aspose.words.lowcode/)
* assembly [Aspose.Words](../../)
