Table of Contents

Constructor 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 MailInlineRun(string Text, MailTextEmphasis Emphasis, MailDocumentColour? Foreground, MailDocumentLink? Link)

Parameters

Text string

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

Emphasis MailTextEmphasis

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

Foreground MailDocumentColour?

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

Link MailDocumentLink

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

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.