public static void SetFontStretch(this HtmlStyleDictionary style, FontStretch fontStretch, IHtmlValueConverter converter) { if (fontStretch == FontStretch.Normal) { style.ClearValue("font-stretch"); } else { style.SetValue("font-stretch", converter.ToFontStretchString(fontStretch)); } }