Aspose::Pdf::Facades::ReplaceTextStrategy class

ReplaceTextStrategy class

This class contains parameters which define PdfContentEditor behavior when ReplaceText operation is performed.

class ReplaceTextStrategy : public System::Object

Enums

EnumDescription
NoCharacterActionAction to perform if font does not contain required character.
ScopeScope where replace text operation is applied REPLACE_FIRST by default.

Methods

MethodDescription
get_IsRegularExpressionUsed() constIf false, string to find is a simple text. If true, string to find is regular expression.
get_NoCharacterBehavior() constAction which is performed when no approppriate font found for changed text (Throw exception / Substitute other font / Replace anyway).
get_ReplaceScope() constScope of the replacement operation (replace first occurence or replace all occurences).
ReplaceTextStrategy()
set_IsRegularExpressionUsed(bool)If false, string to find is a simple text. If true, string to find is regular expression.
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(ReplaceTextStrategy::Scope)Scope of the replacement operation (replace first occurence or replace all occurences).

See Also