com.groupdocs.redaction

Class ReplacementOptions



  • public class ReplacementOptions
    extends Object

    Defines way to change the matched text in process of redaction

    • Constructor Detail

      • ReplacementOptions

        public ReplacementOptions(String replacement)

        Creates new instance with replacement text as an option

        Parameters:
        replacement - Textual replacement
      • ReplacementOptions

        public ReplacementOptions(Color color)

        Creates new instance with colored rectangle as an option

        Parameters:
        color - Rectangle color
    • Method Detail

      • getActionType

        public final int getActionType()

        Defines replacement action: draw box or replace text

      • getReplacement

        public final String getReplacement()

        Textual replacement

      • setReplacement

        public final void setReplacement(String value)

        Textual replacement

      • getBoxColor

        public final Color getBoxColor()

        Color for a ReplacementType.DrawBox option (ignored otherwise)

      • setBoxColor

        public final void setBoxColor(Color value)

        Color for a ReplacementType.DrawBox option (ignored otherwise)