Beispiel #1
0
        /// <summary>
        /// Marks the complete column specified by the given table row or cell
        /// with the given color.
        /// </summary>
        public void MarkTableColumn(HtmlElement start, Color color)
        {
            start.Require(x => start != null);

            HtmlTable.GetColumn(myDocument.Create(start))
            .OfType <HtmlElementAdapter>()
            .Foreach(e => MarkElement(e.Element, color));
        }
Beispiel #2
0
        public void GetColumn()
        {
            HtmlPath path = HtmlPath.Parse("/BODY[0]/DIV[5]/DIV[0]/DIV[1]/TABLE[7]/TBODY[0]/TR[6]/TD[1]");
            var      e    = myDocument.GetElementByPath(path);

            var column = HtmlTable.GetColumn(e);

            // Hint: colspan not implemented
            Assert.AreEqual(8, column.Count());
            Assert.AreEqual(e, column.ElementAt(5));
        }