HtmlForgeX

API Reference

Class

EmailFontSizeExtensions

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers static

Helper methods for EmailFontSize values.

Inheritance

  • Object
  • EmailFontSizeExtensions

Methods

public static String ToCssValue(EmailFontSize fontSize) #
Returns: String

Converts the enum to an absolute CSS px value.

Parameters

fontSize HtmlForgeX.Email.EmailFontSize requiredposition: 0
Font size value.

Returns

Pixel size string.

public static String ToDefaultMargin(EmailFontSize fontSize) #
Returns: String

Gets the appropriate margin for the font size to ensure proper spacing.

Parameters

fontSize HtmlForgeX.Email.EmailFontSize requiredposition: 0
public static String ToLineHeight(EmailFontSize fontSize) #
Returns: String

Gets the appropriate line height for the font size to ensure proper alignment.

Parameters

fontSize HtmlForgeX.Email.EmailFontSize requiredposition: 0