__init__ constructor

On this page

init

Initializes a new instance of ReplacementOptions with the specified replacement text.

def __init__(self, replacement):
    ...
Parameter Type Description
replacement str Textual replacement.

Example

    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.

See Also

On this page