__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

# Replace matched text with "[REDACTED]"
options = ReplacementOptions("[REDACTED]")

init

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

def __init__(self, color):
    ...
Parameter Type Description
color System.Drawing.Color Rectangle color.

See Also

On this page