System\Windows\Documents\TextRangeEditTables.cs (83)
62TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start);
72TableCell lastCell = GetTableCellFromPosition(lastCellPointer);
134internal static TableCell GetTableCellFromPosition(TextPointer position)
137while (element != null && !(element is TableCell))
142return element as TableCell;
187TableCell anchorCell;
188TableCell movingCell;
230out TableCell anchorCell, out TableCell movingCell)
288TableCell anchorCell;
289TableCell movingCell;
329private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell)
345TableCell segmentStartCell = null;
346TableCell segmentEndCell = null;
351TableCell cell = cells[cellIndex];
438TableCell anchorCell;
439TableCell movingCell;
580TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
597TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
670TableCell cell = new TableCell(new Paragraph());
844TableCell tableCell = new TableCell();
948TableCell startCell;
949TableCell endCell;
1076TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start);
1087cell = (TableCell)cellEnd.GetAdjacentElement(LogicalDirection.Forward);
1133TableCell[] spannedCells = currentRow.SpannedCells;
1138TableCell cell = spannedCells[i];
1139cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount));
1172TableCell currentCell = cells[i];
1286TableCell cell = cells[cellIndex];
1309TableCell[] spannedCells = nextRow.SpannedCells;
1315TableCell spannedCell = spannedCells[i];
1322spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount);
1333TableCell newCell = AddCellCopy(nextRow, spannedCell, cellIndex, /*copyRowSpan:*/false, /*copyColumnSpan:*/true);
1335newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index));
1381TableCell cellInsertAfter = null;
1385TableCell cell = row.Cells[iCell];
1406cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1);
1432TableCell startCell;
1433TableCell endCell;
1492TableCell cellDelete = null;
1496TableCell cell = row.Cells[iCell];
1517cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1);
1537TableCell startCell;
1538TableCell endCell;
1621TableCell cell = cellInfo.Cell;
1826TableCell startCell;
1827TableCell endCell;
1877TableCell startCell;
1878TableCell endCell;
1923startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1);
1926startCell.ClearValue(TableCell.ColumnSpanProperty);
1984private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell)
2045out TableCell anchorCell, out TableCell movingCell,
2130out TableCell anchorCell, out TableCell movingCell,
2169out TableCell cell,
2187if (element is TableCell)
2189cell = (TableCell)element;
2251private static TableCell AddCellCopy(TableRow newRow, TableCell currentCell, int cellInsertionIndex, bool copyRowSpan, bool copyColumnSpan)
2255TableCell newCell = new TableCell();
2274if (propertyEntry.Property == TableCell.RowSpanProperty && !copyRowSpan ||
2275propertyEntry.Property == TableCell.ColumnSpanProperty && !copyColumnSpan)
2384TableCell[] spannedCells = rowGroup.Rows[topRow].SpannedCells;
2402TableCell firstCell;
2403TableCell lastCell;
2431TableCell firstCell;
2432TableCell lastCell;
2445firstCell.ClearValue(TableCell.RowSpanProperty);
2449firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2451firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan);
2468TableCell[] spannedCells = row.SpannedCells;
2471TableCell spannedCell = spannedCells[i];
2478spannedCell.ClearValue(TableCell.RowSpanProperty);
2482spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2508private static bool GetBoundaryCells(TableRow row, int bottomRow, int leftColumn, int rightColumn, out TableCell firstCell, out TableCell lastCell)
2517TableCell cell = row.Cells[cellIndex];
2543private static bool IsLastCellInRow(TableCell cell)