Constructor MailHeadingBlock
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document.Blocks
- Assembly
- MailFathom.Application.dll
MailHeadingBlock(int, IReadOnlyList<MailInlineRun>, MailBlockAlignment)
Initializes a heading.
public MailHeadingBlock(int level, IReadOnlyList<MailInlineRun> content, MailBlockAlignment alignment)
Parameters
levelintThe heading level, between ShallowestLevel and DeepestLevel.
contentIReadOnlyList<MailInlineRun>The runs the heading holds, in reading order.
alignmentMailBlockAlignmentHow the heading places its content across the width it was given.
Exceptions
- ArgumentNullException
Thrown when
contentis null.- ArgumentOutOfRangeException
Thrown when the level names no heading this contract holds.