Table of Contents

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

level int

The heading level, between ShallowestLevel and DeepestLevel.

content IReadOnlyList<MailInlineRun>

The runs the heading holds, in reading order.

alignment MailBlockAlignment

How the heading places its content across the width it was given.

Exceptions

ArgumentNullException

Thrown when content is null.

ArgumentOutOfRangeException

Thrown when the level names no heading this contract holds.