Table of Contents

Class MailImageBlock

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

A picture the message displays, and where following it goes.

public sealed record MailImageBlock : MailDocumentBlock, IEquatable<MailDocumentBlock>, IEquatable<MailImageBlock>
Inheritance
MailImageBlock
Implements
Inherited Members

Remarks

A picture is a block rather than a run because that is what it is in mail: a banner, a logo, or a photograph on a line of its own. The link is here because a clickable banner is the ordinary shape of a newsletter, and a picture that goes somewhere has to say where before it is followed exactly as a worded link does.

Constructors

MailImageBlock(MailInlineImage, MailDocumentLink?, MailBlockAlignment)

Initializes a picture.

Properties

Alignment

Gets how the picture sits across the width it was given.

Image

Gets the picture itself.

Link

Gets where following the picture goes, or null where it goes nowhere.