public static void SetFontWeight(this HtmlStyleDictionary style, FontWeight fontWeight, IHtmlValueConverter converter) { if (fontWeight == FontWeight.Normal) { style.ClearValue("font-weight"); } else { style.SetValue("font-weight", converter.ToFontWeightString(fontWeight)); } }
public static void SetFontWeight(this HtmlStyleDictionary style, FontWeight fontWeight, IHtmlValueConverter converter) { if (fontWeight == FontWeight.Normal) { style.ClearValue("font-weight"); } else { style.SetValue("font-weight", converter.ToFontWeightString(fontWeight)); } }