ReplaceTextStrategy

ReplaceTextStrategy

Overview

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

Controls how {@link PdfContentEditor#replaceText(String, String)} performs replacements.

This class provides 4 methods for working with ReplaceTextStrategy objects in Java programs. Available methods include: getReplaceScope, isRegularExpressionUsed, setRegularExpressionUsed, setReplaceScope. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: regularExpressionUsed, replaceScope.

Properties

NameTypeAccessDescription
regularExpressionUsedbooleanReadReturns whether regular-expression matching is enabled.
replaceScopeScopeReadReturns the replacement scope.

Methods

SignatureDescription
isRegularExpressionUsed()booleanReturns whether regular-expression matching is enabled.
setRegularExpressionUsed(regularExpressionUsed: boolean)Enables or disables regular-expression matching.
getReplaceScope()ScopeReturns the replacement scope.
setReplaceScope(replaceScope: Scope)Sets the replacement scope.

See Also

 English