API Reference
Enum
FontWeight
Common font-weight values mapped to numeric CSS representations.
Inheritance
- Enum
- FontWeight
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Field FontWeight.Black
- Field FontWeight.Bold
- Field FontWeight.ExtraBold
- Field FontWeight.ExtraLight
- Field FontWeight.Light
- Field FontWeight.Medium
- Field FontWeight.Normal
- Field FontWeight.SemiBold
- Field FontWeight.Thin
- Property Span.FontWeight
Accepted by parameters
- Extension method FontWeight.EnumToString
- Extension method FontWeight.ToCssValue
- Method FontWeightExtensions.EnumToString
- Method FontWeightExtensions.ToCssValue
- Method InlineText.Bold
- Method InlineText.Bold
- Method InlineText.Text
- Method InlineText.Text
- Method Span.AddStyledText
- Method Span.WithFontWeight
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Returns:
Int32Inherited from Enum
Parameters
- target Object
public override sealed String ToString(String format, IFormatProvider provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String
Values
Extension Methods
public static String EnumToString(FontWeight value) #Returns:
StringConverts the enum value to the numeric CSS weight string.
Parameters
- value HtmlForgeX.FontWeight
- Font weight value.
Returns
Numeric CSS representation of the weight.
public static String ToCssValue(FontWeight value) #Returns:
StringConverts the font weight to its CSS representation.
Parameters
- value HtmlForgeX.FontWeight