HtmlForgeX

API Reference

Class

EmailDownloadCard

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

Email-safe "download / attachment" card. Useful for reports, exports and file delivery emails.

Inheritance

Constructors

Methods

AddBadge 2 overloads
public EmailDownloadCard AddBadge(String text, String backgroundColor = null, String color = null, String borderColor = null) #
Returns: EmailDownloadCard

Adds a small badge (e.g., file type or size).

Parameters

text System.String requiredposition: 0
backgroundColor System.String = null optionalposition: 1
color System.String = null optionalposition: 2
borderColor System.String = null optionalposition: 3
public EmailDownloadCard AddBadge(Action<EmailDownloadBadge> configure) #
Returns: EmailDownloadCard

Adds a badge configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailDownloadBadge} requiredposition: 0
public override String ToString() #
Returns: String
public EmailDownloadCard WithButton(String text, String href, EmailButtonStyle style = Primary, EmailButtonSize size = Small) #
Returns: EmailDownloadCard

Sets the button.

Parameters

text System.String requiredposition: 0
href System.String requiredposition: 1
style HtmlForgeX.Email.EmailButtonStyle = Primary optionalposition: 2
size HtmlForgeX.Email.EmailButtonSize = Small optionalposition: 3
public EmailDownloadCard WithDescription(String description) #
Returns: EmailDownloadCard

Sets the description.

Parameters

description System.String requiredposition: 0
public EmailDownloadCard WithIcon(String icon) #
Returns: EmailDownloadCard

Sets the icon.

Parameters

icon System.String requiredposition: 0
public EmailDownloadCard WithTitle(String title) #
Returns: EmailDownloadCard

Sets the title.

Parameters

title System.String requiredposition: 0

Properties

public String Icon { get; set; } #

Icon shown on the left (emoji or short text).

public String Title { get; set; } #

Primary title (typically file name).

public String Description { get; set; } #

Optional description under the title.

public String ButtonText { get; set; } #

Button text.

public String ButtonHref { get; set; } #

Button URL.

public EmailButtonStyle ButtonStyle { get; set; } #

Button style.

public EmailButtonSize ButtonSize { get; set; } #

Button size.

public String BackgroundColor { get; set; } #

Background color.

public String BorderColor { get; set; } #

Border color.

public String BorderRadius { get; set; } #

Border radius.

public String CardPadding { get; set; } #

Card padding.

public String TitleColor { get; set; } #

Title color.

public String DescriptionColor { get; set; } #

Description color.

public List<EmailDownloadBadge> Badges { get; } #

Badges shown under the description (file type/size/checksum/etc.).