public static void SetFontStyle(this HtmlStyleDictionary style, FontStyle fontStyle, IHtmlValueConverter converter) { if (fontStyle == FontStyle.Normal) { style.ClearValue("font-style"); } else { style.SetValue("font-style", converter.ToFontStyleString(fontStyle)); } }
public static void SetFontStyle(this HtmlStyleDictionary style, FontStyle fontStyle, IHtmlValueConverter converter) { if (fontStyle == FontStyle.Normal) { style.ClearValue("font-style"); } else { style.SetValue("font-style", converter.ToFontStyleString(fontStyle)); } }