RedactorApply Method (Redaction)
Applies a redaction to the document.

Namespace: GroupDocs.Redaction
Assembly: GroupDocs.Redaction (in GroupDocs.Redaction.dll) Version: 21.9
Syntax
public RedactorChangeLog Apply(
	Redaction redaction
)

Parameters

redaction
Type: GroupDocs.RedactionRedaction
An instance of Redaction to apply

Return Value

Type: RedactorChangeLog
Success or failure and error message in this case
Examples

The following example demonstrates applying a single redaction to the document.

C#
using (Redactor redactor = new Redactor(@"D:\\test.docx"))
{
   RedactorChangeLog result = redactor.Apply(new RegexRedaction(LookupStrings.SSNRegexPattern, new ReplacementOptions("[ssn]")));
   if (result.Status != RedactionStatus.Failed)
   {
      redactor.Save();
   };
}
See Also