Table of Contents

Class MailInlineRun

Namespace
MailFathom.Application.EmailContent.Rendering.Document
Assembly
MailFathom.Application.dll

One stretch of a message's text that is drawn the same way throughout.

public sealed record MailInlineRun : IEquatable<MailInlineRun>
Inheritance
MailInlineRun
Implements
Inherited Members

Remarks

Runs are flat rather than nested, which is what keeps the contract small enough for a client to render with a text element and a loop. A nested inline hierarchy would let a document describe a run inside a run inside a link, and nothing in mail needs that once the properties compose on one value.

A <br> the message wrote survives as a newline inside Text rather than as a member of its own, so a client emits a line break wherever it meets one. The reduction writes no other control character, which is what makes that reading unambiguous.

The text is words a stranger wrote and is drawn into a typed text element. Nothing about it is markup and nothing parses it, so an angle bracket in it is an angle bracket — mail quoted from a developer's inbox is full of them.

Constructors

MailInlineRun(string, MailTextEmphasis, MailDocumentColour?, MailDocumentLink?)

One stretch of a message's text that is drawn the same way throughout.

Properties

Emphasis

What the message asked for about how the words are drawn.

Foreground

The colour the message asked the words to be, or null where it asked for none.

Link

Where the words go when they are followed, or null where they go nowhere.

Text

The words themselves, with the message's own line breaks kept as newlines.