__init__ constructor

On this page

init

Initializes a new RegionReplacementOptions instance.

def __init__(self, fill_color, size):
    ...
Parameter Type Description
fill_color Color Color to fill the area.
size Size Filled area size.

Example

from groupdocs.redaction.options.drawing import Color, Size
from groupdocs.redaction.redactions import RegionReplacementOptions

color = Color.from_argb(255, 220, 20, 60)
size = Size(1793, 2069)
repl_opt = RegionReplacementOptions(color, size)

init

Initializes a new RegionReplacementOptions instance whose size matches the given text.

def __init__(self, fill_color, font, expected_text):
    ...
Parameter Type Description
fill_color Color Color to fill the area.
font Font Expected text font.
expected_text str Expected text.

See Also

On this page