Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }