HtmlForgeX

API Reference

Class

EmailLineItemsTable

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

Opinionated line-items table (title + subtitle, qty, unit, total) with no raw HTML required. Designed for invoices, receipts, order summaries, and renewal notices.

Inheritance

Constructors

Methods

AddItem 2 overloads
public EmailLineItemsTable AddItem(String title, String subtitle, Int32 quantity, Decimal unitPrice, Nullable<Decimal> lineTotal = null, String imageSrc = null, String imageAlt = null, String imageHref = null, Int32 imageWidth = 36, Int32 imageHeight = 36) #
Returns: EmailLineItemsTable

Adds an item row.

Parameters

title System.String requiredposition: 0
subtitle System.String requiredposition: 1
quantity System.Int32 requiredposition: 2
unitPrice System.Decimal requiredposition: 3
lineTotal System.Nullable{System.Decimal} = null optionalposition: 4
imageSrc System.String = null optionalposition: 5
imageAlt System.String = null optionalposition: 6
imageHref System.String = null optionalposition: 7
imageWidth System.Int32 = 36 optionalposition: 8
imageHeight System.Int32 = 36 optionalposition: 9
public EmailLineItemsTable AddItem(Action<EmailLineItem> configure) #
Returns: EmailLineItemsTable

Adds an item configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailLineItem} requiredposition: 0
public override String ToString() #
Returns: String

Properties

public List<EmailLineItem> Items { get; } #

Line items rendered in the table.

public String CurrencySymbol { get; set; } #

Currency symbol used for unit/total columns.

public Int32 Decimals { get; set; } #

Number of decimals for currency values.

public CultureInfo Culture { get; set; } #

Culture used for currency formatting (defaults to InvariantCulture).

public EmailTableStyle TableStyle { get; set; } #

Table visual style.

public EmailTablePadding TablePadding { get; set; } #

Padding level for table cells.

public Boolean ShowImages { get; set; } #

Whether to render an image/thumbnail column when any item provides one.

public String ItemHeader { get; set; } #

Header text for the item column.

public String QtyHeader { get; set; } #

Header text for the qty column.

public String UnitHeader { get; set; } #

Header text for the unit price column.

public String TotalHeader { get; set; } #

Header text for the total column.