Example #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;
 }
Example #2
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);
        }
Example #3
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;
 }
Example #4
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);
 }