com.groupdocs.redaction.redactions

Class ReplacementOptions



  • public class ReplacementOptions
    extends Object

    Represents options for matched text replacement.

    • Constructor Detail

      • ReplacementOptions

        public ReplacementOptions(String replacement)

        Initializes a new instance of ReplacementOptions class with replacement text as an option.

        Parameters:
        replacement - Textual replacement
      • ReplacementOptions

        public ReplacementOptions(Color color)

        Initializes a new instance of ReplacementOptions class with colored rectangle as an option.

        Parameters:
        color - Rectangle color
    • Method Detail

      • getActionType

        public final ReplacementType getActionType()

        Gets the replacement action: draw box or replace text.

        Returns:
        The replacement action: draw box or replace text.
      • getReplacement

        public final String getReplacement()

        Gets the textual replacement value.

        Returns:
        The textual replacement value.
      • setReplacement

        public final void setReplacement(String value)

        Sets the textual replacement value.

        Parameters:
        value - The textual replacement value.
      • getBoxColor

        public final Color getBoxColor()

        Gets the color for a ReplacementType.DrawBox option (ignored otherwise).

        Returns:
        The color for a ReplacementType.DrawBox option (ignored otherwise).
      • setBoxColor

        public final void setBoxColor(Color value)

        Sets the color for a ReplacementType.DrawBox option (ignored otherwise).

        Parameters:
        value - The color for a ReplacementType.DrawBox option (ignored otherwise).