ReplacementOptions class

ReplacementOptions class

Represents options for matched text replacement.

Learn more

The ReplacementOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of ReplacementOptions with the specified replacement text.
init Initializes a new instance of ReplacementOptions class with colored rectangle as an option.

Properties

Property Description
action_type The replacement action: draw box or replace text.
box_color The color for a ReplacementType.draw_box option (ignored otherwise).
custom_redaction The custom redaction handler that allows users to define their own redaction logic.
filters The array of filters to apply with this redaction.
replacement The textual replacement value.

Example

from groupdocs.redaction.redactions import ReplacementOptions

# Replace matched text with placeholder "[X]"
repl_opt = ReplacementOptions("[X]")

Guides

Task guides that use ReplacementOptions:

See Also