API Reference
InlineTextBuilder
Builder for simple inline content (text, bold, muted, line breaks) used in table cells.
Inheritance
- Object
- InlineTextBuilder
Constructors
public InlineTextBuilder() #Methods
public InlineTextBuilder Badge(String text, EmailStatusTone tone = Neutral, EmailFontSize size = Small) #InlineTextBuilderAdds a compact pill/badge.
Parameters
- text System.String
- tone HtmlForgeX.Email.EmailStatusTone = Neutral
- size HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Bytes(Nullable<Int64> bytes, Int32 decimals = 2, EmailBytesUnitSystem unitSystem = Binary, CultureInfo culture = null, EmailFontSize size = Small) #InlineTextBuilderFormats a byte-size value into a compact representation (e.g., "2.47 MB").
Parameters
- bytes System.Int64
- decimals System.Int32 = 2
- unitSystem HtmlForgeX.Email.EmailBytesUnitSystem = Binary
- culture System.Globalization.CultureInfo = null
- size HtmlForgeX.Email.EmailFontSize = Small
Bytes(System.Nullable{System.Int64} bytes, System.Int32 decimals, HtmlForgeX.Email.EmailBytesUnitSystem unitSystem, System.Globalization.CultureInfo culture, HtmlForgeX.Email.EmailFontSize size) #Formats a byte-size value into a compact representation (nullable). When the value is null, does nothing.
Parameters
- bytes System.Nullable{System.Int64}
- decimals System.Int32
- unitSystem HtmlForgeX.Email.EmailBytesUnitSystem
- culture System.Globalization.CultureInfo
- size HtmlForgeX.Email.EmailFontSize
public InlineTextBuilder CompactNumber(Nullable<Int64> value, Int32 decimals = 1, EmailCompactNumberCase suffixCase = Lower, CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a compact number (e.g., "1.2k", "3.4M").
Parameters
- value System.Int64
- decimals System.Int32 = 1
- suffixCase HtmlForgeX.Email.EmailCompactNumberCase = Lower
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
CompactNumber(System.Nullable{System.Int64} value, System.Int32 decimals, HtmlForgeX.Email.EmailCompactNumberCase suffixCase, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a compact number (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.Int64}
- decimals System.Int32
- suffixCase HtmlForgeX.Email.EmailCompactNumberCase
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Date(Nullable<DateTimeOffset> value, String format = "MMM d, yyyy", CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a date using an email-friendly default.
Parameters
- value System.DateTime
- format System.String = "MMM d, yyyy"
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Date(System.Nullable{System.DateTime} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTime}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
Date(System.DateTimeOffset value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date using an email-friendly default.
Parameters
- value System.DateTimeOffset
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
Date(System.Nullable{System.DateTimeOffset} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTimeOffset}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder DateTime(Nullable<DateTimeOffset> value, String format = "MMM d, yyyy · h:mm tt", CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a date+time using an email-friendly default.
Parameters
- value System.DateTime
- format System.String = "MMM d, yyyy · h:mm tt"
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
DateTime(System.Nullable{System.DateTime} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date+time using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTime}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
DateTime(System.DateTimeOffset value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date+time using an email-friendly default.
Parameters
- value System.DateTimeOffset
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
DateTime(System.Nullable{System.DateTimeOffset} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a date+time using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTimeOffset}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Dot(EmailStatusTone tone = Neutral, EmailFontSize size = Small) #InlineTextBuilderAdds a colored dot indicator (●) for status-like inline labels.
Parameters
- tone HtmlForgeX.Email.EmailStatusTone = Neutral
- size HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Duration(Nullable<TimeSpan> duration, Int32 maxParts = 2, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a duration into a compact representation (e.g., "1h 30m").
Parameters
- duration System.TimeSpan
- maxParts System.Int32 = 2
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Duration(System.Nullable{System.TimeSpan} duration, System.Int32 maxParts, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a duration into a compact representation (nullable). When the value is null, does nothing.
Parameters
- duration System.Nullable{System.TimeSpan}
- maxParts System.Int32
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder EmailAddress(String email, String text = null, EmailFontSize size = Regular) #InlineTextBuilderAdds an email address as a mailto link (no manual mailto: required).
Parameters
- email System.String
- text System.String = null
- size HtmlForgeX.Email.EmailFontSize = Regular
public InlineTextBuilder Enum<TEnum>(Nullable<TEnum> value, Boolean humanize = true, Nullable<EmailFontSize> size = null) #InlineTextBuilderType Parameters
- TEnum
Parameters
- value TEnum
- humanize Boolean = true
- size Nullable<EmailFontSize> = null
Enum``1(``0 value, System.Boolean humanize, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Renders an enum value (optionally humanized) without manual formatting.
Parameters
- value ``0
- humanize System.Boolean
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
Enum``1(System.Nullable{``0} value, System.Boolean humanize, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Renders an enum value (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{``0}
- humanize System.Boolean
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Hash(String hash, EmailFontSize size = Small, Boolean breakAll = true) #InlineTextBuilderRenders a hash/checksum value in monospace (useful for SHA256/MD5 checksums).
Parameters
- hash System.String
- size HtmlForgeX.Email.EmailFontSize = Small
- breakAll System.Boolean = true
public InlineTextBuilder HashCompact(String hash, Int32 head = 12, Int32 tail = 8, EmailFontSize size = Small, String ellipsis = "…") #InlineTextBuilderRenders a hash/checksum in monospace and truncates the middle for readability.
Parameters
- hash System.String
- head System.Int32 = 12
- tail System.Int32 = 8
- size HtmlForgeX.Email.EmailFontSize = Small
- ellipsis System.String = "…"
public InlineTextBuilder Icon(String icon, Nullable<EmailStatusTone> tone = null, EmailFontSize size = Small) #InlineTextBuilderAdds a small icon/glyph. Use emoji or a simple symbol (e.g., ●, ✓, ⚠).
Parameters
- icon System.String
- tone System.Nullable{HtmlForgeX.Email.EmailStatusTone} = null
- size HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Id(String id, EmailFontSize size = Small, Boolean breakAll = true) #InlineTextBuilderRenders an ID-like value in monospace (order IDs, request IDs, etc.).
Parameters
- id System.String
- size HtmlForgeX.Email.EmailFontSize = Small
- breakAll System.Boolean = true
public InlineTextBuilder IdCompact(String id, Int32 head = 10, Int32 tail = 6, EmailFontSize size = Small, String ellipsis = "…") #InlineTextBuilderRenders an ID-like value in monospace and truncates the middle for readability.
Parameters
- id System.String
- head System.Int32 = 10
- tail System.Int32 = 6
- size HtmlForgeX.Email.EmailFontSize = Small
- ellipsis System.String = "…"
public InlineTextBuilder IpAddress(String ipAddress, EmailFontSize size = Small) #InlineTextBuilderRenders an IP address in monospace (typically no aggressive wrapping).
Parameters
- ipAddress System.String
- size HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Link(String text, String href, EmailFontSize size = Regular) #InlineTextBuilderAdds a link.
Parameters
- text System.String
- href System.String
- size HtmlForgeX.Email.EmailFontSize = Regular
public InlineTextBuilder Money(Nullable<Decimal> amount, String currencySymbol = "$", Int32 decimals = 2, CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a currency value (e.g., "$1,234.50").
Parameters
- amount System.Decimal
- currencySymbol System.String = "$"
- decimals System.Int32 = 2
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Money(System.Nullable{System.Decimal} amount, System.String currencySymbol, System.Int32 decimals, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a currency value (nullable). When the value is null, does nothing.
Parameters
- amount System.Nullable{System.Decimal}
- currencySymbol System.String
- decimals System.Int32
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Monospace(String text, EmailFontSize size = Small, Boolean breakAll = true) #InlineTextBuilderAdds monospace text (useful for IDs/hashes/codes).
Parameters
- text System.String
- size HtmlForgeX.Email.EmailFontSize = Small
- breakAll System.Boolean = true
public InlineTextBuilder Muted(String text, EmailFontSize size = Small) #InlineTextBuilderAdds muted text (uses the hfx-muted class + optional font size).
Parameters
- text System.String
- size HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Number(Nullable<Decimal> value, Int32 decimals = 0, CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a number (e.g., "1,234.5").
Parameters
- value System.Decimal
- decimals System.Int32 = 0
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Number(System.Nullable{System.Decimal} value, System.Int32 decimals, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a number (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.Decimal}
- decimals System.Int32
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Percent(Nullable<Decimal> percent, Int32 decimals = 0, CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a percent (expects percent units, e.g. 12.3 => "12.3%").
Parameters
- percent System.Decimal
- decimals System.Int32 = 0
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Percent(System.Nullable{System.Decimal} percent, System.Int32 decimals, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a percent (nullable). When the value is null, does nothing.
Parameters
- percent System.Nullable{System.Decimal}
- decimals System.Int32
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder PhoneNumber(String phoneNumber, String text = null, EmailFontSize size = Regular) #InlineTextBuilderAdds a phone number as a tel link (no manual tel: required).
Parameters
- phoneNumber System.String
- text System.String = null
- size HtmlForgeX.Email.EmailFontSize = Regular
public InlineTextBuilder RelativeTime(Nullable<DateTimeOffset> when, Nullable<DateTimeOffset> now = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a timestamp relative to now (e.g., "2h ago", "in 3d").
Parameters
- when System.DateTimeOffset
- now System.Nullable{System.DateTimeOffset} = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
RelativeTime(System.Nullable{System.DateTimeOffset} when, System.Nullable{System.DateTimeOffset} now, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a timestamp relative to now (nullable). When the value is null, does nothing.
Parameters
- when System.Nullable{System.DateTimeOffset}
- now System.Nullable{System.DateTimeOffset}
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Status(String label, EmailStatusTone tone = Neutral, String meta = "", String href = null, EmailFontSize metaSize = Small) #InlineTextBuilderRenders a compact status indicator (dot + label + optional meta) without raw HTML.
Parameters
- label System.String
- tone HtmlForgeX.Email.EmailStatusTone = Neutral
- meta System.String = ""
- href System.String = null
- metaSize HtmlForgeX.Email.EmailFontSize = Small
public InlineTextBuilder Strong(String text) #InlineTextBuilderAdds bold text.
Parameters
- text System.String
public InlineTextBuilder Strong(String text, EmailFontSize size) #InlineTextBuilderAdds bold text with a specific font size.
Parameters
- text System.String
- size HtmlForgeX.Email.EmailFontSize
public InlineTextBuilder Text(String text) #InlineTextBuilderAdds plain text.
Parameters
- text System.String
public InlineTextBuilder Text(String text, EmailFontSize size) #InlineTextBuilderAdds plain text with a specific font size.
Parameters
- text System.String
- size HtmlForgeX.Email.EmailFontSize
public InlineTextBuilder Time(Nullable<DateTimeOffset> value, String format = "h:mm tt", CultureInfo culture = null, Nullable<EmailFontSize> size = null) #InlineTextBuilderFormats a time using an email-friendly default.
Parameters
- value System.DateTime
- format System.String = "h:mm tt"
- culture System.Globalization.CultureInfo = null
- size System.Nullable{HtmlForgeX.Email.EmailFontSize} = null
Time(System.Nullable{System.DateTime} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a time using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTime}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
Time(System.DateTimeOffset value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a time using an email-friendly default.
Parameters
- value System.DateTimeOffset
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
Time(System.Nullable{System.DateTimeOffset} value, System.String format, System.Globalization.CultureInfo culture, System.Nullable{HtmlForgeX.Email.EmailFontSize} size) #Formats a time using an email-friendly default (nullable). When the value is null, does nothing.
Parameters
- value System.Nullable{System.DateTimeOffset}
- format System.String
- culture System.Globalization.CultureInfo
- size System.Nullable{HtmlForgeX.Email.EmailFontSize}
public InlineTextBuilder Url(String url, String text = null, EmailFontSize size = Regular) #InlineTextBuilderAdds a URL link (no manual formatting required).
Parameters
- url System.String
- text System.String = null
- size HtmlForgeX.Email.EmailFontSize = Regular