예제 #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);
            }