71 references to TextContainer
PresentationFramework (71)
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
229if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 286if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer)
System\Windows\Controls\SinglePageViewer.cs (2)
1027return flowDocument.ContentStart.TextContainer == textPointer.TextContainer;
System\Windows\Documents\AnchoredBlock.cs (2)
47insertionPosition?.TextContainer.BeginChange(); 60insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
20_textContainer = textPointerTable.TextContainer;
System\Windows\Documents\InlineUIContainer.cs (2)
64insertionPosition?.TextContainer.BeginChange(); 74insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\LineBreak.cs (2)
34insertionPosition?.TextContainer.BeginChange(); 42insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\RangeContentEnumerator.cs (4)
37_generation = _start.TextContainer.Generation; 87if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 150if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 209if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\Run.cs (2)
58insertionPosition?.TextContainer.BeginChange(); 73insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\Span.cs (6)
56insertionPosition?.TextContainer.BeginChange(); 69insertionPosition?.TextContainer.EndChange(); 90if (start.TextContainer != end.TextContainer) 99start.TextContainer.BeginChange(); 150start.TextContainer.EndChange();
System\Windows\Documents\TextContainer.cs (3)
942Invariant.Assert(startPosition.TextContainer == this); 943Invariant.Assert(endPosition.TextContainer == this); 3225if (position.TextContainer != this)
System\Windows\Documents\TextEffectResolver.cs (1)
72effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart);
System\Windows\Documents\TextElement.cs (8)
149if (tree == start.TextContainer) 182start.TextContainer.BeginChange(); 185start.TextContainer.InsertElementInternal(start, end, this); 189start.TextContainer.EndChange(); 200start.TextContainer.BeginChange(); 203start.TextContainer.InsertElementInternal(start, end, this); 207start.TextContainer.EndChange(); 250tree = textPosition.TextContainer;
System\Windows\Documents\TextElementEnumerator.cs (3)
35_generation = _start.TextContainer.Generation; 103if (_start != null && _generation != _start.TextContainer.Generation) 157if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\TextPointer.cs (12)
435return (this.TextContainer == textPosition.TextContainer); 1417if (this.TextContainer.Parent != null) 1419Type containerType = this.TextContainer.Parent.GetType(); 1687return TextContainer.Start; 1704return TextContainer.End; 2359offsetPosition = TextContainer.GetInternalOffset(position); 3629return this.TextContainer; 3903if (offset < 1 || offset > position.TextContainer.InternalSymbolCount - 1) 3908position.TextContainer.GetNodeAndEdgeAtOffset(offset, out node, out edge); 3919Initialize(position.TextContainer, (TextTreeNode)node, edge, direction, position.TextContainer.PositionGeneration,
System\Windows\Documents\TextRangeBase.cs (1)
1323TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer;
System\Windows\Documents\TextRangeEdit.cs (6)
591Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 618Invariant.Assert(position.TextContainer.Parent == null); 792DependencyObject parent = start.TextContainer.Parent; 1691one.TextContainer.DeleteContentInternal(one, two); 1695two.TextContainer.DeleteContentInternal(two, one);
System\Windows\Documents\TextRangeEditLists.cs (1)
771adjustedEnd = list.ElementEnd.TextContainer.End;
System\Windows\Documents\TextRangeEditTables.cs (9)
1140cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1323spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1336newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1407cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1518cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1924startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 2450firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2483spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
329navigator.TextContainer.InsertTextInternal(navigator, _text); 383navigator.TextContainer.InsertEmbeddedObjectInternal(navigator, embeddedObject); 429navigator.TextContainer.SetValues(navigator, TextTreeUndoUnit.ArrayToLocalValueEnumerator(_localValues)); 473TextPointer textPointerTable = new TextPointer(navigator.TextContainer.Start, _cpTable, LogicalDirection.Forward);