Class MailHeadingBlock
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document.Blocks
- Assembly
- MailFathom.Application.dll
A heading the message wrote, at the level it wrote it.
public sealed record MailHeadingBlock : MailDocumentBlock, IEquatable<MailDocumentBlock>, IEquatable<MailHeadingBlock>
- Inheritance
-
MailHeadingBlock
- Implements
- Inherited Members
Remarks
The level is kept rather than flattened into an emphasis, because it is what a screen reader announces the structure of a message from. A pane draws it with the typography its own design system gives that level, so a sender cannot decide how large a heading is in somebody else's reading pane.
Constructors
- MailHeadingBlock(int, IReadOnlyList<MailInlineRun>, MailBlockAlignment)
Initializes a heading.
Fields
- DeepestLevel
The deepest heading level, which is the one
h6reduces to.
- ShallowestLevel
The shallowest heading level, which is the one
h1reduces to.
Properties
- Alignment
Gets how the heading places its content across the width it was given.
- Content
Gets the runs the heading holds, in reading order.
- Level
Gets the heading level the message wrote.