Property Document
- Namespace
- MailFathom.Application.EmailContent.Rendering
- Assembly
- MailFathom.Application.dll
Document
Gets the body reduced to the document tree a reading pane draws, or null when none was asked for.
public MailDocument? Document { get; init; }
Property Value
Remarks
It is reduced from the message's own HTML parts rather than from the markup SanitizedHtmlBody produced, which is the property that matters: neither representation is a reading of the other's string, so there is no pass where one parser's output becomes another parser's input. The two are cut from the same character allowance, so they reduce the same prefix of the same body.
They are two parses of that prefix rather than one, because the sanitized representation reparses while it shrinks its source to fit the bound. Nothing reconciles the two: a reading pane is handed this document and no markup at all, and a caller reading the markup is handed no tree, so no client draws one thing from both.