Aspose::Pdf::Text::TextReplaceOptions class

TextReplaceOptions class

Represents text replace options.

class TextReplaceOptions : public Aspose::Pdf::Text::TextOptions

Enums

EnumDescription
ReplaceAdjustmentDetermines action that will be done after replace of text fragment to more short. None - no action, replaced text may overlaps rest of the line; AdjustSpaceWidth - tries adjust spaces between words to keep line length; WholeWordsHyphenation - tries distribute words between paragraph lines to keep paragraph’s right field; ShiftRestOfLine - shifts rest of the line according to changing length of text, length of the line may be changed; Default value is ShiftRestOfLine.
ScopeScope where replace text operation is applied REPLACE_FIRST by default This obsolete option was kept for compatibility. It affects to PdfContentEditor and has no effect to TextFragmentAbsorber.

Methods

MethodDescription
get_AdjustmentNewLineSpacing() constGets value of line spacing that used if replace adjustment is forced to create new line of text. The value expected is multiplier of font size of the replaced text. Default is 1.2.
get_IgnoreParagraphs() constGets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
get_LeftAdjustment() constSets or gets left position adjustment for replaced text when using TextReplaceOptions:
get_ReplaceAdjustmentAction() constGets an action that will be done after replace of text fragment to more short.
get_ReplaceScope() constGets a scope where replace text operation is applied.
get_RightAdjustment() constSets or gets right position adjustment for replaced text when using TextReplaceOptions:
set_AdjustmentNewLineSpacing(double)Sets value of line spacing that used if replace adjustment is forced to create new line of text. The value expected is multiplier of font size of the replaced text. Default is 1.2.
set_IgnoreParagraphs(bool)Sets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
set_LeftAdjustment(double)Sets or gets left position adjustment for replaced text when using TextReplaceOptions:
set_ReplaceAdjustmentAction(TextReplaceOptions::ReplaceAdjustment)Sets an action that will be done after replace of text fragment to more short.
set_ReplaceScope(TextReplaceOptions::Scope)Sets a scope where replace text operation is applied.
set_RightAdjustment(double)Sets or gets right position adjustment for replaced text when using TextReplaceOptions:
TextReplaceOptions(TextReplaceOptions::Scope)Initializes new instance of the TextReplaceOptions object for the specified scope.
TextReplaceOptions(TextReplaceOptions::ReplaceAdjustment)Initializes new instance of the TextReplaceOptions object for the specified after replace action.

See Also