internal void restoreStructure(TableStructure str) { resetCoveredCells(); cells = str.cells.Clone(); colsList = str.cols.Clone(); rowsList = str.rows.Clone(); rowsCount = str.rowsCount; columnsCount = str.columnsCount; hasHeaderRows = str.hasHeaderRows; layoutText(); layoutCellText(); }
internal void saveStructure(TableStructure str) { str.rows = rowsList.Clone(); str.cols = colsList.Clone(); str.cells = cells.Clone(); str.rowsCount = rowsCount; str.columnsCount = columnsCount; str.hasHeaderRows = hasHeaderRows; }