System\Windows\Documents\TextRangeEditTables.cs (83)
59TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start);
69TableCell lastCell = GetTableCellFromPosition(lastCellPointer);
131internal static TableCell GetTableCellFromPosition(TextPointer position)
134while (element != null && !(element is TableCell))
139return element as TableCell;
184TableCell anchorCell;
185TableCell movingCell;
227out TableCell anchorCell, out TableCell movingCell)
285TableCell anchorCell;
286TableCell movingCell;
326private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell)
342TableCell segmentStartCell = null;
343TableCell segmentEndCell = null;
348TableCell cell = cells[cellIndex];
435TableCell anchorCell;
436TableCell movingCell;
577TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
594TableCell cell = GetTableCellFromPosition(selection.MovingPosition);
669TableCell cell = new TableCell(new Paragraph())
845TableCell tableCell = new TableCell();
949TableCell startCell;
950TableCell endCell;
1077TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start);
1088cell = (TableCell)cellEnd.GetAdjacentElement(LogicalDirection.Forward);
1134TableCell[] spannedCells = currentRow.SpannedCells;
1139TableCell cell = spannedCells[i];
1140cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount));
1173TableCell currentCell = cells[i];
1287TableCell cell = cells[cellIndex];
1310TableCell[] spannedCells = nextRow.SpannedCells;
1316TableCell spannedCell = spannedCells[i];
1323spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount);
1334TableCell newCell = AddCellCopy(nextRow, spannedCell, cellIndex, /*copyRowSpan:*/false, /*copyColumnSpan:*/true);
1336newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index));
1382TableCell cellInsertAfter = null;
1386TableCell cell = row.Cells[iCell];
1407cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1);
1433TableCell startCell;
1434TableCell endCell;
1493TableCell cellDelete = null;
1497TableCell cell = row.Cells[iCell];
1518cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1);
1538TableCell startCell;
1539TableCell endCell;
1622TableCell cell = cellInfo.Cell;
1827TableCell startCell;
1828TableCell endCell;
1878TableCell startCell;
1879TableCell endCell;
1924startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1);
1927startCell.ClearValue(TableCell.ColumnSpanProperty);
1985private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell)
2046out TableCell anchorCell, out TableCell movingCell,
2131out TableCell anchorCell, out TableCell movingCell,
2170out TableCell cell,
2188if (element is TableCell)
2190cell = (TableCell)element;
2252private static TableCell AddCellCopy(TableRow newRow, TableCell currentCell, int cellInsertionIndex, bool copyRowSpan, bool copyColumnSpan)
2256TableCell newCell = new TableCell();
2275if (propertyEntry.Property == TableCell.RowSpanProperty && !copyRowSpan ||
2276propertyEntry.Property == TableCell.ColumnSpanProperty && !copyColumnSpan)
2385TableCell[] spannedCells = rowGroup.Rows[topRow].SpannedCells;
2403TableCell firstCell;
2404TableCell lastCell;
2432TableCell firstCell;
2433TableCell lastCell;
2446firstCell.ClearValue(TableCell.RowSpanProperty);
2450firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan);
2469TableCell[] spannedCells = row.SpannedCells;
2472TableCell spannedCell = spannedCells[i];
2479spannedCell.ClearValue(TableCell.RowSpanProperty);
2483spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
2509private static bool GetBoundaryCells(TableRow row, int bottomRow, int leftColumn, int rightColumn, out TableCell firstCell, out TableCell lastCell)
2518TableCell cell = row.Cells[cellIndex];
2544private static bool IsLastCellInRow(TableCell cell)