DocumentRedactWith Method (Redaction)
Apply a set of redactions to the document

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 19.3
Syntax
public RedactionSummary RedactWith(
	Redaction[] redactions
)

Parameters

redactions
Type: GroupDocs.RedactionRedaction
An array of redactions to apply

Return Value

Type: RedactionSummary
Success or failure and error message in this case
Examples
This example demonstrates applying single redaction to a document
C#
using (Document doc = Redactor.Load("D:\\test.docx"))
{
   RedactionSummary result = doc.RedactWith(new RegexRedaction(LookupStrings.SSNRegexPattern, new ReplacementOptions("[ssn]")));
   if (result.Success)
   {
      doc.Save();
   };
}
See Also