public static void SetHtmlFontStretch(this HtmlElement element, System.Windows.FontStretch fontStretch, HtmlValueConverter converter) { if (fontStretch == System.Windows.FontStretch.Normal) { element.ClearHtmlStyleProperty("font-stretch"); } else { element.SetHtmlStyleProperty("font-stretch", converter.ToFontStretchString(fontStretch)); } }