HtmlForgeX

API Reference

Class

FontWeightExtensions

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers static

Extension methods for the FontWeight enum.

Inheritance

  • Object
  • FontWeightExtensions

Methods

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

Converts the enum value to the numeric CSS weight string.

Parameters

value HtmlForgeX.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.FontWeight requiredposition: 0