HtmlForgeX

API Reference

Enum

FontWeight

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Common font-weight values mapped to numeric CSS representations.

Inheritance

  • Enum
  • FontWeight

Values

public const FontWeight Thin #

Thin text (100)

Value: 0
public const FontWeight ExtraLight #

Extra light text (200)

Value: 1
public const FontWeight Light #

Light text (300)

Value: 2
public const FontWeight Normal #

Normal text (400)

Value: 3
public const FontWeight Medium #

Medium text (500)

Value: 4
public const FontWeight SemiBold #

Semi-bold text (600)

Value: 5
public const FontWeight Bold #

Bold text (700)

Value: 6
public const FontWeight ExtraBold #

Extra bold text (800)

Value: 7
public const FontWeight Black #

Black text (900)

Value: 8

Extension Methods

public static String EnumToString(FontWeight value) #
Returns: String

Converts the enum value to the numeric CSS weight string.

Parameters

value HtmlForgeX.Email.FontWeight requiredposition: 0
Font weight value.

Returns

Numeric CSS representation of the weight.

public static String ToCssValue(FontWeight value) #
Returns: String

Converts the font weight to its CSS representation.

Parameters

value HtmlForgeX.Email.FontWeight requiredposition: 0