public TableBuilder() { _table = new Table(); _row = new TableRow(); _table.Rows.Add(_row); _cell = new TableCell(); _row.Cells.Add(_cell); }
void RenderTable(Table block, XmlElement container) { XmlElement tableElement = container.OwnerDocument.CreateElement("table"); container.AppendChild(tableElement); foreach (TableRow row in block.Rows) { XmlElement tableRowElement = container.OwnerDocument.CreateElement("table-row"); tableElement.AppendChild(tableRowElement); foreach (TableCell cell in row.Cells) { XmlElement tableCellElement = container.OwnerDocument.CreateElement("table-cell"); tableRowElement.AppendChild(tableCellElement); RenderBlockSequenceInto(cell, tableCellElement, null); } } }
public virtual void VisitTable(Table table) { }