Class MailPreformattedBlock
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document.Blocks
- Assembly
- MailFathom.Application.dll
Text whose own line breaks and spacing are part of what it says.
public sealed record MailPreformattedBlock : MailDocumentBlock, IEquatable<MailDocumentBlock>, IEquatable<MailPreformattedBlock>
- Inheritance
-
MailPreformattedBlock
- Implements
- Inherited Members
Remarks
What a <pre> reduces to, which in mail is a code sample, a diff, or terminal output. It is a block of
its own rather than a paragraph of monospaced runs because a pane must not re-wrap it: collapsing its whitespace
would change what the message says, which is precisely the thing this block exists to prevent.
Constructors
- MailPreformattedBlock(string)
Initializes preformatted text.
Properties
- Text
Gets the text as the message wrote it, whitespace included.