__init__ constructor
Leave feedback
On this page
Initializes a new instance of ReplacementOptions with the specified replacement text.
def __init__(self, replacement):
...
| Parameter | Type | Description |
|---|---|---|
| replacement | str |
Textual replacement. |
from groupdocs.redaction.redactions import ReplacementOptions
options = ReplacementOptions("[X]")
```
## __init__ {#color}
Initializes a new instance of ReplacementOptions class with a colored rectangle as an option.
```python
def __init__(self, color):
...
| Parameter | Type | Description |
|---|---|---|
| color | Color |
Rectangle color. |
- class
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.