__init__ constructor
Leave feedback
On this page
Initializes a new CellColumnRedaction.
def __init__(self, filter, reg_ex, options):
...
| Parameter | Type | Description |
|---|---|---|
| filter | CellFilter |
Column and worksheet filter. |
| reg_ex | System.Text.RegularExpressions.Regex |
Regular expression to search and replace. |
| options | ReplacementOptions |
Replacement options. |
from groupdocs.redaction import Redactor
from groupdocs.redaction.redactions import CellColumnRedaction, ReplacementOptions
from groupdocs.pydrawing import Color
with Redactor("spreadsheet.xlsx") as redactor:
redactor.apply(
CellColumnRedaction(
CellFilter(worksheet="Sheet1", column=2),
r"\bsecret\b",
ReplacementOptions(Color.BLACK)
)
)
redactor.save()
- class
CellColumnRedaction
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.