__init__ constructor

On this page

init

Initializes a new RegionReplacementOptions instance.

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

Example

from groupdocs.redaction.redactions import RegionReplacementOptions
from groupdocs.pydrawing import Color, Size

options = RegionReplacementOptions(Color.BLACK, Size(200, 80))

init

Initializes a new instance of RegionReplacementOptions class which size matches given text.

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

See Also

On this page