Method WithRedactedText
- Namespace
- MailFathom.Application.Emails.AttachmentText
- Assembly
- MailFathom.Application.dll
WithRedactedText(RedactedText)
Reports the same derivation with its words replaced by their redacted form.
public DerivedAttachmentText WithRedactedText(RedactedText redacted)
Parameters
redactedRedactedTextThe redaction the user's switched-on scanner produced from these words.
Returns
- DerivedAttachmentText
The redacted derivation, or this one unchanged when it carries no words.
Remarks
The segment boundaries are offsets into the words, and a placeholder is rarely the length of what it replaced, so every boundary past the first finding has moved. Each is therefore carried across rather than compared: MapOffset(int) is the one thing that knows where a character went, and without it a two-hundred-page contract would lose every page boundary because a signature block held an email address. A boundary the analyzed ceiling dropped is left out, since the text it pointed into is not in the result — a citation that says nothing is better than one that sends a reader to the wrong page.
Exceptions
- ArgumentNullException
Thrown when
redactedis null.