Aspose::Pdf::Text::TextReplaceOptions class
Contents
[
Hide
]TextReplaceOptions class
Represents text replace options.
class TextReplaceOptions : public Aspose::Pdf::Text::TextOptions
Enums
Enum | Description |
---|---|
ReplaceAdjustment | Determines 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. |
Scope | Scope 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
Method | Description |
---|---|
get_AdjustmentNewLineSpacing() const | Gets 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() const | Gets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement. |
get_LeftAdjustment() const | Sets or gets left position adjustment for replaced text when using TextReplaceOptions: |
get_ReplaceAdjustmentAction() const | Gets an action that will be done after replace of text fragment to more short. |
get_ReplaceScope() const | Gets a scope where replace text operation is applied. |
get_RightAdjustment() const | Sets 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
- Class TextOptions
- Namespace Aspose::Pdf::Text
- Library Aspose.PDF for C++