HtmlForgeX

API Reference

Class

EmailIconCircle

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

Small email-safe icon-in-circle primitive (emoji or short text). Useful inside cards, callouts, timelines and compact headers.

Inheritance

Constructors

Methods

public override String ToString() #
Returns: String
public EmailIconCircle WithBackgroundColor(String color) #
Returns: EmailIconCircle

Sets background color.

Parameters

color System.String requiredposition: 0
public EmailIconCircle WithBorder(String color, String width = "1px") #
Returns: EmailIconCircle

Sets border (color + optional width).

Parameters

color System.String requiredposition: 0
width System.String = "1px" optionalposition: 1
public EmailIconCircle WithIcon(String icon) #
Returns: EmailIconCircle

Sets icon text.

Parameters

icon System.String requiredposition: 0
public EmailIconCircle WithSize(String size) #
Returns: EmailIconCircle

Sets size.

Parameters

size System.String requiredposition: 0
public EmailIconCircle WithTextColor(String color) #
Returns: EmailIconCircle

Sets text color.

Parameters

color System.String requiredposition: 0

Properties

public String Icon { get; set; } #

Icon content (emoji or short text).

public String Size { get; set; } #

Size of the circle (e.g. "32px").

public String BackgroundColor { get; set; } #

Background color (theme-aware by default, maps to Accent).

public String TextColor { get; set; } #

Text/icon color. When empty, a contrast color is chosen automatically.

public String BorderColor { get; set; } #

Border color (optional). When empty, border is not rendered.

public String BorderWidth { get; set; } #

Border width.

public String FontSize { get; set; } #

Font size for the icon.

public String FontFamily { get; set; } #

Font family.

public Boolean EnableOutlookVmlFallback { get; set; } #

When true, emits an Outlook (MSO) VML fallback so the circle stays circular in Outlook desktop.