src\Framework\System\Windows\Documents\TextRangeEditTables.cs (83)
64TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start);
74TableCell lastCell = GetTableCellFromPosition(lastCellPointer);
137internal static TableCell GetTableCellFromPosition(TextPointer position)
140while (element != null && !(element is TableCell))
145return element as TableCell;
190TableCell anchorCell;
191TableCell movingCell;
233out TableCell anchorCell, out TableCell movingCell)
291TableCell anchorCell;
292TableCell movingCell;
332private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell)
348TableCell segmentStartCell = null;
349TableCell segmentEndCell = null;
354TableCell cell = cells[cellIndex];
441TableCell anchorCell;
442TableCell movingCell;
583TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
600TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
673TableCell cell = new TableCell(new Paragraph());
847TableCell tableCell = new TableCell();
951TableCell startCell;
952TableCell endCell;
1079TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start);
1090cell = (TableCell)cellEnd.GetAdjacentElement(LogicalDirection.Forward);
1136TableCell[] spannedCells = currentRow.SpannedCells;
1141TableCell cell = spannedCells[i];
1142cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount));
1175TableCell currentCell = cells[i];
1289TableCell cell = cells[cellIndex];
1312TableCell[] spannedCells = nextRow.SpannedCells;
1318TableCell spannedCell = spannedCells[i];
1325spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount);
1336TableCell newCell = AddCellCopy(nextRow, spannedCell, cellIndex, /*copyRowSpan:*/false, /*copyColumnSpan:*/true);
1338newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index));
1384TableCell cellInsertAfter = null;
1388TableCell cell = row.Cells[iCell];
1409cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1);
1435TableCell startCell;
1436TableCell endCell;
1495TableCell cellDelete = null;
1499TableCell cell = row.Cells[iCell];
1520cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1);
1540TableCell startCell;
1541TableCell endCell;
1624TableCell cell = cellInfo.Cell;
1829TableCell startCell;
1830TableCell endCell;
1880TableCell startCell;
1881TableCell endCell;
1926startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1);
1929startCell.ClearValue(TableCell.ColumnSpanProperty);
1987private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell)
2048out TableCell anchorCell, out TableCell movingCell,
2133out TableCell anchorCell, out TableCell movingCell,
2172out TableCell cell,
2190if (element is TableCell)
2192cell = (TableCell)element;
2254private static TableCell AddCellCopy(TableRow newRow, TableCell currentCell, int cellInsertionIndex, bool copyRowSpan, bool copyColumnSpan)
2258TableCell newCell = new TableCell();
2277if (propertyEntry.Property == TableCell.RowSpanProperty && !copyRowSpan ||
2278propertyEntry.Property == TableCell.ColumnSpanProperty && !copyColumnSpan)
2387TableCell[] spannedCells = rowGroup.Rows[topRow].SpannedCells;
2405TableCell firstCell;
2406TableCell lastCell;
2434TableCell firstCell;
2435TableCell lastCell;
2448firstCell.ClearValue(TableCell.RowSpanProperty);
2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2454firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan);
2471TableCell[] spannedCells = row.SpannedCells;
2474TableCell spannedCell = spannedCells[i];
2481spannedCell.ClearValue(TableCell.RowSpanProperty);
2485spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2511private static bool GetBoundaryCells(TableRow row, int bottomRow, int leftColumn, int rightColumn, out TableCell firstCell, out TableCell lastCell)
2520TableCell cell = row.Cells[cellIndex];
2546private static bool IsLastCellInRow(TableCell cell)