ReplaceTextStrategy

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

NameTypeAccessDescription
ReplaceScopeScopeRead/WriteHow many matches to replace; default ReplaceFirst.
IsRegularExpressionUsedboolRead/WriteWhen true, the search string is interpreted as a .NET regular expression.
NoCharacterBehaviorNoCharacterActionRead/WriteBehaviour when the replacement font cannot render a character.

Methods

SignatureDescription
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.

See Also

 English