6 instantiations of TableCell
PresentationFramework (6)
System\Windows\Documents\FixedElement.cs (1)
248root = new TableCell();
System\Windows\Documents\TextRangeEditTables.cs (3)
670TableCell cell = new TableCell(new Paragraph()); 844TableCell tableCell = new TableCell(); 2255TableCell newCell = new TableCell();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9778bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableCell(); };
System\Windows\Markup\KnownTypes.cs (1)
1583case KnownElements.TableCell: o = new System.Windows.Documents.TableCell(); break;
191 references to TableCell
PresentationFramework (191)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1026if (typeof(TableCell).IsAssignableFrom(elementType) ||
MS\Internal\Documents\IIndexedChild.cs (1)
19/// <see cref="TableCell"/> implements IIndexedChild with TParent == TableRow
MS\Internal\LayoutDump.cs (1)
959TableCell cell = cellParagraph.Cell;
MS\Internal\PtsHost\CellParaClient.cs (3)
397internal TableCell Cell { get { return (CellParagraph.Cell); } } 487internal TableCell Cell { get { return (_cell); } } 511private TableCell _cell;
MS\Internal\PtsHost\CellParagraph.cs (2)
41internal TableCell Cell { get { return (TableCell)Element; } }
MS\Internal\PtsHost\MbpInfo.cs (2)
30if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 118if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
MS\Internal\PtsHost\RowParagraph.cs (3)
240TableCell cell = Row.Cells[j]; 262TableCell cell = _spannedCells[j].Cell; 391private CellParagraph FindCellParagraphForCell(RowParagraph previousRow, TableCell cell)
MS\Internal\PtsHost\SubpageParagraph.cs (3)
164Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 349Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 509Invariant.Assert(Element is TableCell || Element is AnchoredBlock);
MS\Internal\PtsTable\RowSpanVector.cs (6)
74internal void Register(TableCell cell) 159internal void GetSpanCells(out TableCell[] cells, out bool isLastRowOfAnySpan) 176cells = new TableCell[_size - 1]; 270private static TableCell[] s_noCells = Array.Empty<TableCell>(); // empty array RowSpanVector returns to rows that do not 287internal 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)
112TableCell.ColumnSpanProperty.AddOwner(typeof(FixedElement)); 408return typeof(TableCell);
System\Windows\Documents\FixedSOMTableCell.cs (1)
76element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
System\Windows\Documents\TableCell.cs (13)
189typeof(TableCell), 208typeof(TableCell), 227typeof(TableCell), 245Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 260Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 275Block.LineHeightProperty.AddOwner(typeof(TableCell)); 291Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell)); 524typeof(TableCell), 538typeof(TableCell), 580TableCell cell = (TableCell) d; 600TableCell cell = (TableCell) d;
System\Windows\Documents\TableCellCollection.cs (19)
23public sealed class TableCellCollection : IList<TableCell>, IList 35_cellCollectionInternal = new TableTextElementCollectionInternal<TableRow, TableCell>(owner); 84public void CopyTo(TableCell[] array, int index) 100IEnumerator<TableCell> IEnumerable<TableCell>.GetEnumerator() 102return ((IEnumerable<TableCell>)_cellCollectionInternal).GetEnumerator(); 117public void Add(TableCell item) 142public bool Contains(TableCell item) 152public int IndexOf(TableCell item) 181public void Insert(int index, TableCell item) 201public bool Remove(TableCell item) 438public TableCell this[int index] 457internal void InternalAdd(TableCell item) 465internal void InternalRemove(TableCell item) 502private void PrivateConnectChild(int index, TableCell item) 512private void PrivateDisconnectChild(TableCell item) 518private bool BelongsToOwner(TableCell item) 525private int FindInsertionIndex(TableCell item) 558private TableTextElementCollectionInternal<TableRow, TableCell> _cellCollectionInternal;
System\Windows\Documents\TableRow.cs (6)
74TableCell cell = value as TableCell; 81throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCell)), "value")); 217TableCell cell = _cells[i]; 338internal TableCell[] SpannedCells 440private TableCell[] _spannedCells; // row spanned cell storage
System\windows\Documents\TextEditorTyping.cs (5)
1424TableCell cell = null; 1454while (parent != null && !(parent is TableCell)) 1458if (parent is TableCell) 1460TableCell cell = (TableCell)parent;
System\Windows\Documents\TextPointerBase.cs (1)
237typeof(TableCell).IsAssignableFrom(parentType);
System\Windows\Documents\TextRangeBase.cs (2)
260TableCell cell; 771typeof(TableCell).IsAssignableFrom(navigator.ParentType))
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)
System\Windows\Documents\TextSchema.cs (13)
202else if (typeof(TableCell).IsAssignableFrom(newType)) 204return typeof(TableCell).IsAssignableFrom(siblingType); 444else if (typeof(TableCell).IsAssignableFrom(type)) 446return typeof(TableCell); 457if (typeof(TableCell).IsAssignableFrom(type)) 558else if (typeof(TableCell).IsAssignableFrom(type)) 860return typeof(TableCell).IsAssignableFrom(childType); 867typeof(TableCell).IsAssignableFrom(parentType) || 1078TableCell.ColumnSpanProperty, 1079TableCell.RowSpanProperty, 1082TableCell.PaddingProperty, 1083TableCell.BorderThicknessProperty, 1084TableCell.BorderBrushProperty,
System\windows\Documents\TextSelection.cs (5)
1029TableCell anchorCell; 1030TableCell movingCell; 1033TableCell nextCell; 2515private static TableCell FindCellAtColumnIndex(TableCellCollection cells, int columnIndex) 2519TableCell cell;
System\Windows\Documents\TextStore.cs (3)
2591char ch = (navigator.GetAdjacentElement(LogicalDirection.Forward) is TableCell) ? UnsafeNativeMethods.TS_CHAR_REGION : '\n'; 3408TableCell startCell = TextRangeEditTables.GetTableCellFromPosition(start); 3409TableCell endCell = TextRangeEditTables.GetTableCellFromPosition(end);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
723case 627: t = () => typeof(TableCell); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5841Type type = typeof(System.Windows.Documents.TableCell); 5843this.GetXamlType(typeof(System.Windows.Documents.TableCell)), // DeclaringType 5849bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.TableCell)target).Blocks; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9776typeof(System.Windows.Documents.TableCell),
System\Windows\Markup\KnownTypes.cs (2)
2530case KnownElements.TableCell: return (o as System.Windows.Documents.TableCell).Blocks; 6181case KnownElements.TableCell: t = typeof(System.Windows.Documents.TableCell); break;