ReplaceTextStrategy
Overview
ReplaceTextStrategy is a class in Aspose.PDF FOSS for .NET.
Configures how ReplaceText(string, string) matches and substitutes text.
This class declares 1 method for ReplaceTextStrategy objects in .NET programs.
Available methods include: ReplaceTextStrategy.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: IsRegularExpressionUsed, NoCharacterBehavior, ReplaceScope.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ReplaceScope | Scope | Read/Write | How many matches to replace; default ReplaceFirst. |
IsRegularExpressionUsed | bool | Read/Write | When true, the search string is interpreted as a .NET regular expression. |
NoCharacterBehavior | NoCharacterAction | Read/Write | Behaviour when the replacement font cannot render a character. |
Methods
| Signature | Description |
|---|---|
ReplaceTextStrategy() | Creates a standalone strategy that replaces only the first match, treats the search text literally and falls back to a standard font for missing characters. |