Exemple #1
0
        protected override bool SpecialSetTextContent(object item)
        {
            TableCellElement c;

            if (this.Part is TheadElement)
            {
                c = new ThElement();
            }
            else
            {
                c = new TdElement();
            }
            this.Add(c);
            c.Set(item);
            return(true);
        }
Exemple #2
0
 protected override bool SpecialSetElement(XElement e)
 {
     if (e is TableCellElement)
     {
         this.Add(e);
     }
     else
     {
         TableCellElement c;
         if (this.Part is TheadElement)
         {
             c = new ThElement();
         }
         else
         {
             c = new TdElement();
         }
         this.Add(c);
         c.Set(e);
     }
     return(true);
 }