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); }
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); }