6 instantiations of TableCell
PresentationFramework (6)
src\Framework\System\Windows\Documents\FixedElement.cs (1)
253root = new TableCell();
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
673TableCell cell = new TableCell(new Paragraph()); 847TableCell tableCell = new TableCell(); 2258TableCell newCell = new TableCell();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9774bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableCell(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1584case KnownElements.TableCell: o = new System.Windows.Documents.TableCell(); break;
191 references to TableCell
PresentationFramework (191)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1045if (typeof(TableCell).IsAssignableFrom(elementType) ||
src\Framework\MS\Internal\Documents\IIndexedChild.cs (1)
22/// <see cref="TableCell"/> implements IIndexedChild with TParent == TableRow
src\Framework\MS\Internal\LayoutDump.cs (1)
962TableCell cell = cellParagraph.Cell;
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (3)
424internal TableCell Cell { get { return (CellParagraph.Cell); } } 515internal TableCell Cell { get { return (_cell); } } 539private TableCell _cell;
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (2)
45internal TableCell Cell { get { return (TableCell)Element; } }
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (2)
31if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 119if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (3)
255TableCell cell = Row.Cells[j]; 277TableCell cell = _spannedCells[j].Cell; 406private CellParagraph FindCellParagraphForCell(RowParagraph previousRow, TableCell cell)
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
177Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 374Invariant.Assert(Element is TableCell || Element is AnchoredBlock); 543Invariant.Assert(Element is TableCell || Element is AnchoredBlock);
src\Framework\MS\Internal\PtsTable\RowSpanVector.cs (6)
78internal void Register(TableCell cell) 163internal void GetSpanCells(out TableCell[] cells, out bool isLastRowOfAnySpan) 180cells = new TableCell[_size - 1]; 274private static TableCell[] s_noCells = new TableCell[0]; // empty array RowSpanVector returns to rows that do not 291internal TableCell Cell; // reference to object (cell)
src\Framework\System\Windows\Automation\Peers\TableAutomationPeer.cs (2)
153foreach (TableCell cell in tableRow.Cells) 161foreach (TableCell cell in tableRow.SpannedCells)
src\Framework\System\Windows\Automation\Peers\TableCellAutomationPeer.cs (7)
23public TableCellAutomationPeer(TableCell owner) 108return ((TableCell)Owner).RowIndex; 119return ((TableCell)Owner).ColumnIndex; 130return ((TableCell)Owner).RowSpan; 141return ((TableCell)Owner).ColumnSpan; 152if ((TableCell)Owner != null) 154return ProviderFromPeer(CreatePeerForElement(((TableCell)Owner).Table));
src\Framework\System\Windows\Documents\FixedElement.cs (2)
116TableCell.ColumnSpanProperty.AddOwner(typeof(FixedElement)); 414return typeof(TableCell);
src\Framework\System\Windows\Documents\FixedSOMTableCell.cs (1)
81element.SetValue(TableCell.ColumnSpanProperty, _columnSpan);
src\Framework\System\Windows\Documents\TableCell.cs (13)
196typeof(TableCell), 215typeof(TableCell), 234typeof(TableCell), 252Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 267Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 282Block.LineHeightProperty.AddOwner(typeof(TableCell)); 298Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell)); 531typeof(TableCell), 545typeof(TableCell), 587TableCell cell = (TableCell) d; 607TableCell cell = (TableCell) d;
src\Framework\System\Windows\Documents\TableCellCollection.cs (19)
25public sealed class TableCellCollection : IList<TableCell>, IList 37_cellCollectionInternal = new TableTextElementCollectionInternal<TableRow, TableCell>(owner); 86public void CopyTo(TableCell[] array, int index) 102IEnumerator<TableCell> IEnumerable<TableCell>.GetEnumerator() 104return ((IEnumerable<TableCell>)_cellCollectionInternal).GetEnumerator(); 119public void Add(TableCell item) 144public bool Contains(TableCell item) 154public int IndexOf(TableCell item) 183public void Insert(int index, TableCell item) 203public bool Remove(TableCell item) 440public TableCell this[int index] 459internal void InternalAdd(TableCell item) 467internal void InternalRemove(TableCell item) 504private void PrivateConnectChild(int index, TableCell item) 514private void PrivateDisconnectChild(TableCell item) 520private bool BelongsToOwner(TableCell item) 527private int FindInsertionIndex(TableCell item) 560private TableTextElementCollectionInternal<TableRow, TableCell> _cellCollectionInternal;
src\Framework\System\Windows\Documents\TableRow.cs (6)
83TableCell cell = value as TableCell; 90throw (new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(TableCell)), "value")); 226TableCell cell = _cells[i]; 347internal TableCell[] SpannedCells 449private TableCell[] _spannedCells; // row spanned cell storage
src\Framework\System\windows\Documents\TextEditorTyping.cs (5)
1441TableCell cell = null; 1471while (parent != null && !(parent is TableCell)) 1475if (parent is TableCell) 1477TableCell cell = (TableCell)parent;
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
239typeof(TableCell).IsAssignableFrom(parentType);
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
271TableCell cell; 782typeof(TableCell).IsAssignableFrom(navigator.ParentType))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (83)
64TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start); 74TableCell lastCell = GetTableCellFromPosition(lastCellPointer); 137internal static TableCell GetTableCellFromPosition(TextPointer position) 140while (element != null && !(element is TableCell)) 145return element as TableCell; 190TableCell anchorCell; 191TableCell movingCell; 233out TableCell anchorCell, out TableCell movingCell) 291TableCell anchorCell; 292TableCell movingCell; 332private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 348TableCell segmentStartCell = null; 349TableCell segmentEndCell = null; 354TableCell cell = cells[cellIndex]; 441TableCell anchorCell; 442TableCell movingCell; 583TableCell cell = GetTableCellFromPosition(selection.MovingPosition); 600TableCell cell = GetTableCellFromPosition(selection.MovingPosition); 673TableCell cell = new TableCell(new Paragraph()); 847TableCell tableCell = new TableCell(); 951TableCell startCell; 952TableCell endCell; 1079TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start); 1090cell = (TableCell)cellEnd.GetAdjacentElement(LogicalDirection.Forward); 1136TableCell[] spannedCells = currentRow.SpannedCells; 1141TableCell cell = spannedCells[i]; 1142cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1175TableCell currentCell = cells[i]; 1289TableCell cell = cells[cellIndex]; 1312TableCell[] spannedCells = nextRow.SpannedCells; 1318TableCell spannedCell = spannedCells[i]; 1325spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1336TableCell newCell = AddCellCopy(nextRow, spannedCell, cellIndex, /*copyRowSpan:*/false, /*copyColumnSpan:*/true); 1338newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1384TableCell cellInsertAfter = null; 1388TableCell cell = row.Cells[iCell]; 1409cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1435TableCell startCell; 1436TableCell endCell; 1495TableCell cellDelete = null; 1499TableCell cell = row.Cells[iCell]; 1520cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1540TableCell startCell; 1541TableCell endCell; 1624TableCell cell = cellInfo.Cell; 1829TableCell startCell; 1830TableCell endCell; 1880TableCell startCell; 1881TableCell endCell; 1926startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 1929startCell.ClearValue(TableCell.ColumnSpanProperty); 1987private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell) 2048out TableCell anchorCell, out TableCell movingCell, 2133out TableCell anchorCell, out TableCell movingCell, 2172out TableCell cell, 2190if (element is TableCell) 2192cell = (TableCell)element; 2254private static TableCell AddCellCopy(TableRow newRow, TableCell currentCell, int cellInsertionIndex, bool copyRowSpan, bool copyColumnSpan) 2258TableCell newCell = new TableCell(); 2277if (propertyEntry.Property == TableCell.RowSpanProperty && !copyRowSpan || 2278propertyEntry.Property == TableCell.ColumnSpanProperty && !copyColumnSpan) 2387TableCell[] spannedCells = rowGroup.Rows[topRow].SpannedCells; 2405TableCell firstCell; 2406TableCell lastCell; 2434TableCell firstCell; 2435TableCell lastCell; 2448firstCell.ClearValue(TableCell.RowSpanProperty); 2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2454firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2471TableCell[] spannedCells = row.SpannedCells; 2474TableCell spannedCell = spannedCells[i]; 2481spannedCell.ClearValue(TableCell.RowSpanProperty); 2485spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2511private static bool GetBoundaryCells(TableRow row, int bottomRow, int leftColumn, int rightColumn, out TableCell firstCell, out TableCell lastCell) 2520TableCell cell = row.Cells[cellIndex]; 2546private static bool IsLastCellInRow(TableCell cell)
src\Framework\System\Windows\Documents\TextSchema.cs (13)
204else if (typeof(TableCell).IsAssignableFrom(newType)) 206return typeof(TableCell).IsAssignableFrom(siblingType); 446else if (typeof(TableCell).IsAssignableFrom(type)) 448return typeof(TableCell); 459if (typeof(TableCell).IsAssignableFrom(type)) 560else if (typeof(TableCell).IsAssignableFrom(type)) 862return typeof(TableCell).IsAssignableFrom(childType); 869typeof(TableCell).IsAssignableFrom(parentType) || 1080TableCell.ColumnSpanProperty, 1081TableCell.RowSpanProperty, 1084TableCell.PaddingProperty, 1085TableCell.BorderThicknessProperty, 1086TableCell.BorderBrushProperty,
src\Framework\System\windows\Documents\TextSelection.cs (5)
1032TableCell anchorCell; 1033TableCell movingCell; 1036TableCell nextCell; 2528private static TableCell FindCellAtColumnIndex(TableCellCollection cells, int columnIndex) 2532TableCell cell;
src\Framework\System\Windows\Documents\TextStore.cs (3)
2437char ch = (navigator.GetAdjacentElement(LogicalDirection.Forward) is TableCell) ? UnsafeNativeMethods.TS_CHAR_REGION : '\n'; 3321TableCell startCell = TextRangeEditTables.GetTableCellFromPosition(start); 3322TableCell endCell = TextRangeEditTables.GetTableCellFromPosition(end);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
719case 627: t = () => typeof(TableCell); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5799Type type = typeof(System.Windows.Documents.TableCell); 5801this.GetXamlType(typeof(System.Windows.Documents.TableCell)), // DeclaringType 5807bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.TableCell)target).Blocks; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9772typeof(System.Windows.Documents.TableCell),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2523case KnownElements.TableCell: return (o as System.Windows.Documents.TableCell).Blocks; 6171case KnownElements.TableCell: t = typeof(System.Windows.Documents.TableCell); break;