HtmlForgeX

API Reference

Class

EmailTableRow

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email

Represents a table row in an email table.

Inheritance

  • Object
  • EmailTableRow

Constructors

Methods

AddCell 3 overloads
public EmailTableCell AddCell(String text, Alignment align) #
Returns: EmailTableCell

Adds a simple text cell to the row.

Parameters

text System.String requiredposition: 0
The cell text.
align System.String = "left" requiredposition: 1
The text alignment.

Returns

The EmailTableCell that was added.

AddCell(System.String text, HtmlForgeX.Email.Alignment align) #

Adds a simple text cell to the row with strongly-typed alignment.

Parameters

text System.String required
align HtmlForgeX.Email.Alignment required
public EmailTableCell AddCell(Action<EmailTableCell> config) #
Returns: EmailTableCell

Adds a cell with custom configuration.

Parameters

config System.Action{HtmlForgeX.Email.EmailTableCell} requiredposition: 0
The configuration action for the cell.

Returns

The EmailTableCell that was added.

public EmailTableCell AddImageCell(String imageSrc, Int32 width = 64, Int32 height = 64, String alt = "") #
Returns: EmailTableCell

Adds an image cell to the row.

Parameters

imageSrc System.String requiredposition: 0
The image source URL.
width System.Int32 = 64 optionalposition: 1
The image width.
height System.Int32 = 64 optionalposition: 2
The image height.
alt System.String = "" optionalposition: 3
The image alt text.

Returns

The EmailTableCell that was added.

Properties

public List<EmailTableCell> Cells { get; set; } #

Cells contained in this row.