6 instantiations of TableCell
PresentationFramework (6)
System\Windows\Documents\FixedElement.cs (1)
241root = new TableCell();
System\Windows\Documents\TextRangeEditTables.cs (3)
669TableCell cell = new TableCell(new Paragraph()) 845TableCell tableCell = new TableCell(); 2256TableCell newCell = new TableCell();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10842DefaultConstructor = delegate () { return new System.Windows.Documents.TableCell(); },
System\Windows\Markup\KnownTypes.cs (1)
1576case KnownElements.TableCell: o = new System.Windows.Documents.TableCell(); break;
190 references to TableCell
PresentationFramework (190)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1015if (typeof(TableCell).IsAssignableFrom(elementType) ||
MS\Internal\Documents\IIndexedChild.cs (1)
18/// <see cref="TableCell"/> implements IIndexedChild with TParent == TableRow
MS\Internal\LayoutDump.cs (1)
957TableCell cell = cellParagraph.Cell;
MS\Internal\PtsHost\CellParaClient.cs (3)
391internal TableCell Cell { get { return (CellParagraph.Cell); } } 481internal TableCell Cell { get { return (_cell); } } 505private TableCell _cell;
MS\Internal\PtsHost\CellParagraph.cs (2)
36internal TableCell Cell { get { return (TableCell)Element; } }
MS\Internal\PtsHost\MbpInfo.cs (2)
27if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 115if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
MS\Internal\PtsHost\RowParagraph.cs (3)
236TableCell cell = Row.Cells[j]; 258TableCell cell = _spannedCells[j].Cell; 387private CellParagraph FindCellParagraphForCell(RowParagraph previousRow, TableCell cell)
MS\Internal\PtsHost\SubpageParagraph.cs (3)
148Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 333Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 493Invariant.Assert(Element is TableCell || Element is AnchoredBlock);
MS\Internal\PtsTable\RowSpanVector.cs (5)
71internal void Register(TableCell cell) 156internal void GetSpanCells(out TableCell[] cells, out bool isLastRowOfAnySpan) 172cells = new TableCell[_size - 1]; 207cells = Array.Empty<TableCell>(); 284internal TableCell Cell; // reference to object (cell)
System\Windows\Automation\Peers\TableAutomationPeer.cs (2)
147foreach (TableCell cell in tableRow.Cells) 155foreach (TableCell cell in tableRow.SpannedCells)
System\Windows\Automation\Peers\TableCellAutomationPeer.cs (7)
20public TableCellAutomationPeer(TableCell owner) 105return ((TableCell)Owner).RowIndex; 116return ((TableCell)Owner).ColumnIndex; 127return ((TableCell)Owner).RowSpan; 138return ((TableCell)Owner).ColumnSpan; 149if ((TableCell)Owner != null) 151return ProviderFromPeer(CreatePeerForElement(((TableCell)Owner).Table));
System\Windows\Documents\FixedElement.cs (2)
103TableCell.ColumnSpanProperty.AddOwner(typeof(FixedElement)); 405return typeof(TableCell);
System\Windows\Documents\FixedSOMTableCell.cs (1)
71element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
System\Windows\Documents\TableCell.cs (13)
175typeof(TableCell), 194typeof(TableCell), 213typeof(TableCell), 231Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 246Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 261Block.LineHeightProperty.AddOwner(typeof(TableCell)); 277Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell)); 504typeof(TableCell), 518typeof(TableCell), 560TableCell cell = (TableCell) d; 574TableCell cell = (TableCell) d;
System\Windows\Documents\TableCellCollection.cs (19)
20public sealed class TableCellCollection : IList<TableCell>, IList 32_cellCollectionInternal = new TableTextElementCollectionInternal<TableRow, TableCell>(owner); 81public void CopyTo(TableCell[] array, int index) 97IEnumerator<TableCell> IEnumerable<TableCell>.GetEnumerator() 99return ((IEnumerable<TableCell>)_cellCollectionInternal).GetEnumerator(); 114public void Add(TableCell item) 139public bool Contains(TableCell item) 149public int IndexOf(TableCell item) 178public void Insert(int index, TableCell item) 198public bool Remove(TableCell item) 435public TableCell this[int index] 454internal void InternalAdd(TableCell item) 462internal void InternalRemove(TableCell item) 499private void PrivateConnectChild(int index, TableCell item) 509private void PrivateDisconnectChild(TableCell item) 515private bool BelongsToOwner(TableCell item) 522private int FindInsertionIndex(TableCell item) 555private TableTextElementCollectionInternal<TableRow, TableCell> _cellCollectionInternal;
System\Windows\Documents\TableRow.cs (6)
58TableCell cell = value as TableCell; 65throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCell)), nameof(value))); 198TableCell cell = _cells[i]; 319internal TableCell[] SpannedCells 421private TableCell[] _spannedCells; // row spanned cell storage
System\windows\Documents\TextEditorTyping.cs (5)
1402TableCell cell = null; 1432while (parent != null && !(parent is TableCell)) 1436if (parent is TableCell) 1438TableCell cell = (TableCell)parent;
System\Windows\Documents\TextPointerBase.cs (1)
234typeof(TableCell).IsAssignableFrom(parentType);
System\Windows\Documents\TextRangeBase.cs (2)
256TableCell cell; 767typeof(TableCell).IsAssignableFrom(navigator.ParentType))
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)
System\Windows\Documents\TextSchema.cs (13)
200else if (typeof(TableCell).IsAssignableFrom(newType)) 202return typeof(TableCell).IsAssignableFrom(siblingType); 442else if (typeof(TableCell).IsAssignableFrom(type)) 444return typeof(TableCell); 455if (typeof(TableCell).IsAssignableFrom(type)) 556else if (typeof(TableCell).IsAssignableFrom(type)) 853return typeof(TableCell).IsAssignableFrom(childType); 860typeof(TableCell).IsAssignableFrom(parentType) || 1071TableCell.ColumnSpanProperty, 1072TableCell.RowSpanProperty, 1075TableCell.PaddingProperty, 1076TableCell.BorderThicknessProperty, 1077TableCell.BorderBrushProperty,
System\windows\Documents\TextSelection.cs (5)
1010TableCell anchorCell; 1011TableCell movingCell; 1014TableCell nextCell; 2498private static TableCell FindCellAtColumnIndex(TableCellCollection cells, int columnIndex) 2502TableCell cell;
System\Windows\Documents\TextStore.cs (3)
2564char ch = (navigator.GetAdjacentElement(LogicalDirection.Forward) is TableCell) ? UnsafeNativeMethods.TS_CHAR_REGION : '\n'; 3380TableCell startCell = TextRangeEditTables.GetTableCellFromPosition(start); 3381TableCell endCell = TextRangeEditTables.GetTableCellFromPosition(end);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
720case 627: t = () => typeof(TableCell); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6244Type type = typeof(System.Windows.Documents.TableCell); 6246this.GetXamlType(typeof(System.Windows.Documents.TableCell)), // DeclaringType 6253GetDelegate = delegate (object target) { return ((System.Windows.Documents.TableCell)target).Blocks; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10839typeof(System.Windows.Documents.TableCell),
System\Windows\Markup\KnownTypes.cs (2)
2523case KnownElements.TableCell: return (o as System.Windows.Documents.TableCell).Blocks; 6174case KnownElements.TableCell: t = typeof(System.Windows.Documents.TableCell); break;