public void Highlight(HtmlElement htmlElement, bool doHighlighting) { if (htmlElement.IsNull()) { throw new ArgumentNullException(); } htmlElement.Style = doHighlighting ? string.Concat("background-color: ", ColorTranslator.ToHtml(Defaults.HighlightColor)) : string.Empty; }
public void ScrollToHtmlElement(HtmlElement htmlElement) { if (htmlElement.IsNull()) { throw new ArgumentNullException(); } htmlElement.ScrollIntoView(true); }