Method RedactText
- Namespace
- SoftZenPdf.Redact
- Assembly
- SoftZenPdf.Redact.dll
RedactText(Regex, double)
Marks every match of a regular expression for redaction.
public IReadOnlyList<RedactionMatch> RedactText(Regex pattern, double margin = 0)
Parameters
patternRegexThe pattern to remove.
margindoublePoints added around each match's area; defaults to 0.
Returns
- IReadOnlyList<RedactionMatch>
The matches that were marked.
RedactText(string, RegexOptions, double)
Marks every match of a regular expression for redaction.
public IReadOnlyList<RedactionMatch> RedactText(string pattern, RegexOptions options = RegexOptions.None, double margin = 0)
Parameters
patternstringA .NET regular expression.
optionsRegexOptionsRegular expression options, such as IgnoreCase.
margindoublePoints added around each match's area; defaults to 0.