Class MailTableBlock
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document.Blocks
- Assembly
- MailFathom.Application.dll
A table, which in mail is as often the layout as it is data.
public sealed record MailTableBlock : MailDocumentBlock, IEquatable<MailDocumentBlock>, IEquatable<MailTableBlock>
- Inheritance
-
MailTableBlock
- Implements
- Inherited Members
Remarks
The block that makes this rendering path more faithful than a reading of the words. Mail layout has been built from tables for twenty years because that is what mail clients render, and a table maps onto a grid with no engine behind it — so a two-column newsletter is two columns here.
A column's width is a share of the table rather than a measurement, which is the whole of why it is safe: a share resolves inside the parent whatever the parent turns out to be, while a pixel width resolves against the sender's assumption about a window they cannot see.
Constructors
- MailTableBlock(IReadOnlyList<MailTableColumn>, IReadOnlyList<MailTableRow>)
Initializes a table.
Properties
- Columns
Gets one entry per column, in order.
- Rows
Gets the rows, in the order the message wrote them.