HtmlForgeX

API Reference

Class

EmailMessageThread

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
Modifiers sealed

Email-safe message thread (chat transcript) rendered with table markup. Supports incoming/outgoing bubbles with optional avatars and meta lines.

Inheritance

Constructors

public EmailMessageThread() #

Creates a new message thread with default row spacing.

Methods

public EmailMessageThread AddIncoming(String text, String author = "", String meta = "", String avatarSource = null, String avatarInitials = null) #
Returns: EmailMessageThread

Adds an incoming message.

Parameters

text System.String requiredposition: 0
author System.String = "" optionalposition: 1
meta System.String = "" optionalposition: 2
avatarSource System.String = null optionalposition: 3
avatarInitials System.String = null optionalposition: 4
public EmailMessageThread AddMessage(Action<EmailThreadMessage> configure) #
Returns: EmailMessageThread

Adds a message configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailThreadMessage} requiredposition: 0
public EmailMessageThread AddOutgoing(String text, String author = "", String meta = "", String avatarSource = null, String avatarInitials = null) #
Returns: EmailMessageThread

Adds an outgoing message.

Parameters

text System.String requiredposition: 0
author System.String = "" optionalposition: 1
meta System.String = "" optionalposition: 2
avatarSource System.String = null optionalposition: 3
avatarInitials System.String = null optionalposition: 4
public override String ToString() #
Returns: String

Properties

public List<EmailThreadMessage> Messages { get; } #

Messages in the thread.

public Boolean ShowAvatars { get; set; } #

Whether to show avatars on messages.

public Boolean ShowMeta { get; set; } #

Whether to show the meta line (author / timestamp) when provided.

public String AvatarSize { get; set; } #

Avatar size (e.g. "32px").

public String AvatarGap { get; set; } #

Gap between avatar and bubble.

public String BubbleRadius { get; set; } #

Bubble corner radius.

public String BubblePadding { get; set; } #

Bubble padding.

public String BubbleMaxWidth { get; set; } #

Max bubble width for readability (percentage string, e.g. "78%").

public String IncomingBackgroundColor { get; set; } #

Incoming bubble background.

public String IncomingBorderColor { get; set; } #

Incoming bubble border color.

public String IncomingTextColor { get; set; } #

Incoming bubble text color.

public String OutgoingBackgroundColor { get; set; } #

Outgoing bubble background. When empty, uses the current Theme accent.

public String OutgoingBorderColor { get; set; } #

Outgoing bubble border color. When empty, uses the current Theme accent.

public String OutgoingTextColor { get; set; } #

Outgoing bubble text color.

public String MetaColor { get; set; } #

Meta line color.

public EmailTextWrapMode WrapMode { get; set; } #

Message text wrapping behavior.