## ReplaceTextStrategy class


This class contains parameters which define [PdfContentEditor](../pdfcontenteditor/) behavior when ReplaceText operation is performed.

```cpp
class ReplaceTextStrategy : public System::Object
```

## Enums

| Enum | Description |
| --- | --- |
| [NoCharacterAction](./nocharacteraction/) | Action to perform if font does not contain required character. |
| [Scope](./scope/) | [Scope](./scope/) where replace text operation is applied REPLACE_FIRST by default. |
## Methods

| Method | Description |
| --- | --- |
| [get_IsRegularExpressionUsed](./get_isregularexpressionused/)() const | If false, string to find is a simple text. If true, string to find is regular expression. |
| [get_NoCharacterBehavior](./get_nocharacterbehavior/)() const | Action which is performed when no approppriate font found for changed text (Throw exception / Substitute other font / Replace anyway). |
| [get_ReplaceScope](./get_replacescope/)() const | [Scope](./scope/) of the replacement operation (replace first occurence or replace all occurences). |
| [ReplaceTextStrategy](./replacetextstrategy/)() |  |
| [set_IsRegularExpressionUsed](./set_isregularexpressionused/)(bool) | If false, string to find is a simple text. If true, string to find is regular expression. |
| [set_NoCharacterBehavior](./set_nocharacterbehavior/)(ReplaceTextStrategy::NoCharacterAction) | Action which is performed when no approppriate font found for changed text (Throw exception / Substitute other font / Replace anyway). |
| [set_ReplaceScope](./set_replacescope/)(ReplaceTextStrategy::Scope) | [Scope](./scope/) of the replacement operation (replace first occurence or replace all occurences). |
## See Also

* Class [Object](../../system/object/)
* Namespace [Aspose::Pdf::Facades](../)
* Library [Aspose.PDF for C++](../../)
