6 instantiations of TableCell
PresentationFramework (6)
System\Windows\Documents\FixedElement.cs (1)
242root = new TableCell();
System\Windows\Documents\TextRangeEditTables.cs (3)
670TableCell cell = new TableCell(new Paragraph()) 846TableCell tableCell = new TableCell(); 2257TableCell newCell = new TableCell();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10843DefaultConstructor = delegate () { return new System.Windows.Documents.TableCell(); },
System\Windows\Markup\KnownTypes.cs (1)
1577case KnownElements.TableCell: o = new System.Windows.Documents.TableCell(); break;
191 references to TableCell
PresentationFramework (191)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1019if (typeof(TableCell).IsAssignableFrom(elementType) ||
MS\Internal\Documents\IIndexedChild.cs (1)
19/// <see cref="TableCell"/> implements IIndexedChild with TParent == TableRow
MS\Internal\LayoutDump.cs (1)
958TableCell cell = cellParagraph.Cell;
MS\Internal\PtsHost\CellParaClient.cs (3)
392internal TableCell Cell { get { return (CellParagraph.Cell); } } 482internal TableCell Cell { get { return (_cell); } } 506private TableCell _cell;
MS\Internal\PtsHost\CellParagraph.cs (2)
37internal TableCell Cell { get { return (TableCell)Element; } }
MS\Internal\PtsHost\MbpInfo.cs (2)
28if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 116if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
MS\Internal\PtsHost\RowParagraph.cs (3)
237TableCell cell = Row.Cells[j]; 259TableCell cell = _spannedCells[j].Cell; 388private CellParagraph FindCellParagraphForCell(RowParagraph previousRow, TableCell cell)
MS\Internal\PtsHost\SubpageParagraph.cs (3)
149Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 334Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 494Invariant.Assert(Element is TableCell || Element is AnchoredBlock);
MS\Internal\PtsTable\RowSpanVector.cs (6)
72internal void Register(TableCell cell) 157internal void GetSpanCells(out TableCell[] cells, out bool isLastRowOfAnySpan) 174cells = new TableCell[_size - 1]; 268private static TableCell[] s_noCells = Array.Empty<TableCell>(); // empty array RowSpanVector returns to rows that do not 285internal TableCell Cell; // reference to object (cell)
System\Windows\Automation\Peers\TableAutomationPeer.cs (2)
148foreach (TableCell cell in tableRow.Cells) 156foreach (TableCell cell in tableRow.SpannedCells)
System\Windows\Automation\Peers\TableCellAutomationPeer.cs (7)
21public TableCellAutomationPeer(TableCell owner) 106return ((TableCell)Owner).RowIndex; 117return ((TableCell)Owner).ColumnIndex; 128return ((TableCell)Owner).RowSpan; 139return ((TableCell)Owner).ColumnSpan; 150if ((TableCell)Owner != null) 152return ProviderFromPeer(CreatePeerForElement(((TableCell)Owner).Table));
System\Windows\Documents\FixedElement.cs (2)
104TableCell.ColumnSpanProperty.AddOwner(typeof(FixedElement)); 406return typeof(TableCell);
System\Windows\Documents\FixedSOMTableCell.cs (1)
72element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
System\Windows\Documents\TableCell.cs (13)
176typeof(TableCell), 195typeof(TableCell), 214typeof(TableCell), 232Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 247Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 262Block.LineHeightProperty.AddOwner(typeof(TableCell)); 278Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell)); 511typeof(TableCell), 525typeof(TableCell), 567TableCell cell = (TableCell) d; 587TableCell cell = (TableCell) d;
System\Windows\Documents\TableCellCollection.cs (19)
21public sealed class TableCellCollection : IList<TableCell>, IList 33_cellCollectionInternal = new TableTextElementCollectionInternal<TableRow, TableCell>(owner); 82public void CopyTo(TableCell[] array, int index) 98IEnumerator<TableCell> IEnumerable<TableCell>.GetEnumerator() 100return ((IEnumerable<TableCell>)_cellCollectionInternal).GetEnumerator(); 115public void Add(TableCell item) 140public bool Contains(TableCell item) 150public int IndexOf(TableCell item) 179public void Insert(int index, TableCell item) 199public bool Remove(TableCell item) 436public TableCell this[int index] 455internal void InternalAdd(TableCell item) 463internal void InternalRemove(TableCell item) 500private void PrivateConnectChild(int index, TableCell item) 510private void PrivateDisconnectChild(TableCell item) 516private bool BelongsToOwner(TableCell item) 523private int FindInsertionIndex(TableCell item) 556private TableTextElementCollectionInternal<TableRow, TableCell> _cellCollectionInternal;
System\Windows\Documents\TableRow.cs (6)
59TableCell cell = value as TableCell; 66throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCell)), "value")); 202TableCell cell = _cells[i]; 323internal TableCell[] SpannedCells 425private TableCell[] _spannedCells; // row spanned cell storage
System\windows\Documents\TextEditorTyping.cs (5)
1415TableCell cell = null; 1445while (parent != null && !(parent is TableCell)) 1449if (parent is TableCell) 1451TableCell cell = (TableCell)parent;
System\Windows\Documents\TextPointerBase.cs (1)
235typeof(TableCell).IsAssignableFrom(parentType);
System\Windows\Documents\TextRangeBase.cs (2)
257TableCell cell; 768typeof(TableCell).IsAssignableFrom(navigator.ParentType))
System\Windows\Documents\TextRangeEditTables.cs (83)
60TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start); 70TableCell lastCell = GetTableCellFromPosition(lastCellPointer); 132internal static TableCell GetTableCellFromPosition(TextPointer position) 135while (element != null && !(element is TableCell)) 140return element as TableCell; 185TableCell anchorCell; 186TableCell movingCell; 228out TableCell anchorCell, out TableCell movingCell) 286TableCell anchorCell; 287TableCell movingCell; 327private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 343TableCell segmentStartCell = null; 344TableCell segmentEndCell = null; 349TableCell cell = cells[cellIndex]; 436TableCell anchorCell; 437TableCell movingCell; 578TableCell cell = GetTableCellFromPosition(selection.MovingPosition); 595TableCell cell = GetTableCellFromPosition(selection.MovingPosition); 670TableCell cell = new TableCell(new Paragraph()) 846TableCell tableCell = new TableCell(); 950TableCell startCell; 951TableCell endCell; 1078TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start); 1089cell = (TableCell)cellEnd.GetAdjacentElement(LogicalDirection.Forward); 1135TableCell[] spannedCells = currentRow.SpannedCells; 1140TableCell cell = spannedCells[i]; 1141cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1174TableCell currentCell = cells[i]; 1288TableCell cell = cells[cellIndex]; 1311TableCell[] spannedCells = nextRow.SpannedCells; 1317TableCell spannedCell = spannedCells[i]; 1324spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1335TableCell newCell = AddCellCopy(nextRow, spannedCell, cellIndex, /*copyRowSpan:*/false, /*copyColumnSpan:*/true); 1337newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1383TableCell cellInsertAfter = null; 1387TableCell cell = row.Cells[iCell]; 1408cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1434TableCell startCell; 1435TableCell endCell; 1494TableCell cellDelete = null; 1498TableCell cell = row.Cells[iCell]; 1519cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1539TableCell startCell; 1540TableCell endCell; 1623TableCell cell = cellInfo.Cell; 1828TableCell startCell; 1829TableCell endCell; 1879TableCell startCell; 1880TableCell endCell; 1925startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 1928startCell.ClearValue(TableCell.ColumnSpanProperty); 1986private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell) 2047out TableCell anchorCell, out TableCell movingCell, 2132out TableCell anchorCell, out TableCell movingCell, 2171out TableCell cell, 2189if (element is TableCell) 2191cell = (TableCell)element; 2253private static TableCell AddCellCopy(TableRow newRow, TableCell currentCell, int cellInsertionIndex, bool copyRowSpan, bool copyColumnSpan) 2257TableCell newCell = new TableCell(); 2276if (propertyEntry.Property == TableCell.RowSpanProperty && !copyRowSpan || 2277propertyEntry.Property == TableCell.ColumnSpanProperty && !copyColumnSpan) 2386TableCell[] spannedCells = rowGroup.Rows[topRow].SpannedCells; 2404TableCell firstCell; 2405TableCell lastCell; 2433TableCell firstCell; 2434TableCell lastCell; 2447firstCell.ClearValue(TableCell.RowSpanProperty); 2451firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2453firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2470TableCell[] spannedCells = row.SpannedCells; 2473TableCell spannedCell = spannedCells[i]; 2480spannedCell.ClearValue(TableCell.RowSpanProperty); 2484spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2510private static bool GetBoundaryCells(TableRow row, int bottomRow, int leftColumn, int rightColumn, out TableCell firstCell, out TableCell lastCell) 2519TableCell cell = row.Cells[cellIndex]; 2545private static bool IsLastCellInRow(TableCell cell)
System\Windows\Documents\TextSchema.cs (13)
201else if (typeof(TableCell).IsAssignableFrom(newType)) 203return typeof(TableCell).IsAssignableFrom(siblingType); 443else if (typeof(TableCell).IsAssignableFrom(type)) 445return typeof(TableCell); 456if (typeof(TableCell).IsAssignableFrom(type)) 557else if (typeof(TableCell).IsAssignableFrom(type)) 854return typeof(TableCell).IsAssignableFrom(childType); 861typeof(TableCell).IsAssignableFrom(parentType) || 1072TableCell.ColumnSpanProperty, 1073TableCell.RowSpanProperty, 1076TableCell.PaddingProperty, 1077TableCell.BorderThicknessProperty, 1078TableCell.BorderBrushProperty,
System\windows\Documents\TextSelection.cs (5)
1026TableCell anchorCell; 1027TableCell movingCell; 1030TableCell nextCell; 2514private static TableCell FindCellAtColumnIndex(TableCellCollection cells, int columnIndex) 2518TableCell cell;
System\Windows\Documents\TextStore.cs (3)
2571char ch = (navigator.GetAdjacentElement(LogicalDirection.Forward) is TableCell) ? UnsafeNativeMethods.TS_CHAR_REGION : '\n'; 3390TableCell startCell = TextRangeEditTables.GetTableCellFromPosition(start); 3391TableCell endCell = TextRangeEditTables.GetTableCellFromPosition(end);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
721case 627: t = () => typeof(TableCell); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6245Type type = typeof(System.Windows.Documents.TableCell); 6247this.GetXamlType(typeof(System.Windows.Documents.TableCell)), // DeclaringType 6254GetDelegate = delegate (object target) { return ((System.Windows.Documents.TableCell)target).Blocks; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10840typeof(System.Windows.Documents.TableCell),
System\Windows\Markup\KnownTypes.cs (2)
2524case KnownElements.TableCell: return (o as System.Windows.Documents.TableCell).Blocks; 6175case KnownElements.TableCell: t = typeof(System.Windows.Documents.TableCell); break;