예제 #1
0
        public static List <Element> ToList(HTMLCollection c)
        {
            var l = new List <Element>();

            for (uint i = 0; i < c.length; i++)
            {
                l.Add(c.item(i));
            }
            return(l);
        }
예제 #2
0
        /// <summary>Gets a row from its index.</summary>
        public Element getRow(int index)
        {
            HTMLCollection allRows = rows;

            return(allRows.item(index == -1 ? allRows.length - 1 : index));
        }