コード例 #1
0
        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;
        }
コード例 #2
0
        public void ScrollToHtmlElement(HtmlElement htmlElement)
        {
            if (htmlElement.IsNull())
            {
                throw new ArgumentNullException();
            }

            htmlElement.ScrollIntoView(true);
        }