ReplacementOptions class
Leave feedback
On this page
Represents options for matched text replacement.
Learn more
- More details about document text redactions: https://docs.groupdocs.com/redaction/net/text-redactions/
- More details about redaction filters: https://docs.groupdocs.com/redaction/net/use-pdf-redaction-filters/
The ReplacementOptions type exposes the following members:
| 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. |
| 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. |
from groupdocs.redaction.redactions import ReplacementOptions
# Replace matched text with placeholder "[X]"
repl_opt = ReplacementOptions("[X]")
Task guides that use ReplacementOptions:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.