HtmlForgeX

API Reference

Class

EmailMapCard

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

Email-safe map card (title/description + optional image + legend list). Intended for "visitors map", regional metrics, or any image-based geo visualization.

Inheritance

Constructors

Methods

AddLegend 2 overloads
public EmailMapCard AddLegend(String label, String value, String color = "", String subtitle = "") #
Returns: EmailMapCard

Adds a legend item.

Parameters

label System.String requiredposition: 0
value System.String requiredposition: 1
color System.String = "" optionalposition: 2
subtitle System.String = "" optionalposition: 3
public EmailMapCard AddLegend(Action<EmailMapLegendItem> configure) #
Returns: EmailMapCard

Adds a legend item configured via callback.

Parameters

configure System.Action{HtmlForgeX.Email.EmailMapLegendItem} requiredposition: 0
public override String ToString() #
Returns: String
public EmailMapCard WithHeader(String title, String description = "") #
Returns: EmailMapCard

Sets header.

Parameters

title System.String requiredposition: 0
description System.String = "" optionalposition: 1
public EmailMapCard WithImage(String source, String alt = "Map", String href = null, String height = null) #
Returns: EmailMapCard

Sets map image.

Parameters

source System.String requiredposition: 0
alt System.String = "Map" optionalposition: 1
href System.String = null optionalposition: 2
height System.String = null optionalposition: 3
public EmailMapCard WithLegendTitle(String title) #
Returns: EmailMapCard

Sets legend title.

Parameters

title System.String requiredposition: 0

Properties

public String Icon { get; set; } #

Optional icon shown on the left (emoji or short text).

public String Title { get; set; } #

Card title.

public String Description { get; set; } #

Optional description under the title.

public String ImageSource { get; set; } #

Image source for the map (URL/path/base64/cid).

public String ImageAlt { get; set; } #

Alt text for the map image.

public String ImageHref { get; set; } #

Optional URL wrapping the map image.

public String ImageHeight { get; set; } #

Optional image height attribute (e.g., "180").

public List<EmailMapLegendItem> Legend { get; } #

Legend items shown under the image.

public String LegendTitle { get; set; } #

Optional legend title.

public String BackgroundColor { get; set; } #

Background color (theme-aware by default).

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 (theme-aware by default).

public String DescriptionColor { get; set; } #

Description color (theme-aware by default).

public Boolean UseDescriptionOpacity { get; set; } #

When true, renders description with reduced opacity instead of a hard-coded muted color.

public Double DescriptionOpacity { get; set; } #

Opacity used for description when UseDescriptionOpacity is enabled.

public String LegendLabelColor { get; set; } #

Legend label color (theme-aware by default).

public String LegendValueColor { get; set; } #

Legend value color (theme-aware by default).