Class OfficeRedactionOptions
Controls how OfficeRedactor overwrites matched text. The defaults replace every matched character with the FULL BLOCK character and scrub the document property parts with the same term replacement.
public sealed class OfficeRedactionOptions
- Inheritance
-
OfficeRedactionOptions
- Inherited Members
Examples
using LMKit.Document.OpenXml;
var options = new OfficeRedactionOptions
{
MaskCharacter = 'X',
ScrubDocumentProperties = false
};
Properties
- MaskCharacter
Gets or sets the character written over every matched character. The replacement is same-length, so the document layout around the redacted text is preserved. Default: the FULL BLOCK character (U+2588).
- ScrubDocumentProperties
Gets or sets whether the document property parts are scrubbed too: the same term replacement is applied to the core property text values (title, subject, creator, description, keywords, last modified by) and to the string values of the application properties part. Properties routinely duplicate content being redacted, for example author names. Default:
true.