com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextReplaceOptions



  • public final class TextReplaceOptions
    extends TextOptions

    Represents text replace options

    • Constructor Detail

      • TextReplaceOptions

        public TextReplaceOptions(int scope)

        Initializes new instance of the TextReplaceOptions object for the specified scope.

        Parameters:
        scope - Scope object.
        See Also:
        TextReplaceOptions.Scope
      • TextReplaceOptions

        public TextReplaceOptions(int adjustment,
                                  int scope)

        Initializes new instance of the TextReplaceOptions object for the specified after replace action.

        Parameters:
        adjustment - ReplaceAdjustment object.
        scope - Scope object.
        See Also:
        TextReplaceOptions.ReplaceAdjustment, TextReplaceOptions.Scope
    • Method Detail

      • getReplaceScope

        public int getReplaceScope()

        Gets a scope where replace text operation is applied

        Returns:
        int value
        See Also:
        TextReplaceOptions.Scope
      • setReplaceScope

        public void setReplaceScope(int value)

        Sets a scope where replace text operation is applied

        Parameters:
        value - int value
        See Also:
        TextReplaceOptions.Scope
      • getReplaceAdjustmentAction

        public int getReplaceAdjustmentAction()

        Gets an action that will be done after replace of text fragment to more short.

        Returns:
        ReplaceAdjustment element
        See Also:
        TextReplaceOptions.ReplaceAdjustment
      • setReplaceAdjustmentAction

        public void setReplaceAdjustmentAction(int value)

        Sets an action that will be done after replace of text fragment to more short.

        Parameters:
        value - ReplaceAdjustment element
        See Also:
        TextReplaceOptions.ReplaceAdjustment