Пример #1
0
 public void Output()
 {
     Console.Out.WriteLine("row {0}", index);
     if (cells != null)
     {
         foreach (Cell cell in cells)
         {
             Console.Out.Write("spancol:{0} ", WikiTable.SpanColumn(cell, this));
             cell.Output();
         }
     }
 }
Пример #2
0
            internal static bool IsDeclensionTable(IElement elem)
            {
                if (!WikiTable.IsWikiTable(elem))
                {
                    return(false);
                }

                var tbody   = elem.FirstElementChild;
                var isTBody = tbody.TagName == "TBODY";

                if (!isTBody)
                {
                    return(false);
                }

                return(tbody.ChildElementCount == 20);
            }