ReplaceTextStrategy

ReplaceTextStrategy

Overview

ReplaceTextStrategy is a class in Aspose.PDF FOSS for .NET.

Configures how ReplaceText(string, string) matches and substitutes text via editor.ReplaceTextStrategy.IsRegularExpressionUsed / editor.ReplaceTextStrategy.ReplaceScope.

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.

See Also