71 references to TextContainer
PresentationFramework (71)
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
230if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 287if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer)
System\Windows\Controls\SinglePageViewer.cs (2)
1028return flowDocument.ContentStart.TextContainer == textPointer.TextContainer;
System\Windows\Documents\AnchoredBlock.cs (2)
48insertionPosition?.TextContainer.BeginChange(); 61insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
21_textContainer = textPointerTable.TextContainer;
System\Windows\Documents\InlineUIContainer.cs (2)
65insertionPosition?.TextContainer.BeginChange(); 75insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\LineBreak.cs (2)
35insertionPosition?.TextContainer.BeginChange(); 43insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\RangeContentEnumerator.cs (4)
38_generation = _start.TextContainer.Generation; 88if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 151if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 210if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\Run.cs (2)
59insertionPosition?.TextContainer.BeginChange(); 74insertionPosition?.TextContainer.EndChange();
System\Windows\Documents\Span.cs (6)
57insertionPosition?.TextContainer.BeginChange(); 70insertionPosition?.TextContainer.EndChange(); 91if (start.TextContainer != end.TextContainer) 100start.TextContainer.BeginChange(); 151start.TextContainer.EndChange();
System\Windows\Documents\TextContainer.cs (3)
943Invariant.Assert(startPosition.TextContainer == this); 944Invariant.Assert(endPosition.TextContainer == this); 3226if (position.TextContainer != this)
System\Windows\Documents\TextEffectResolver.cs (1)
73effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart);
System\Windows\Documents\TextElement.cs (8)
150if (tree == start.TextContainer) 183start.TextContainer.BeginChange(); 186start.TextContainer.InsertElementInternal(start, end, this); 190start.TextContainer.EndChange(); 201start.TextContainer.BeginChange(); 204start.TextContainer.InsertElementInternal(start, end, this); 208start.TextContainer.EndChange(); 251tree = textPosition.TextContainer;
System\Windows\Documents\TextElementEnumerator.cs (3)
36_generation = _start.TextContainer.Generation; 104if (_start != null && _generation != _start.TextContainer.Generation) 158if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\TextPointer.cs (12)
436return (this.TextContainer == textPosition.TextContainer); 1418if (this.TextContainer.Parent != null) 1420Type containerType = this.TextContainer.Parent.GetType(); 1688return TextContainer.Start; 1705return TextContainer.End; 2360offsetPosition = TextContainer.GetInternalOffset(position); 3630return this.TextContainer; 3904if (offset < 1 || offset > position.TextContainer.InternalSymbolCount - 1) 3909position.TextContainer.GetNodeAndEdgeAtOffset(offset, out node, out edge); 3920Initialize(position.TextContainer, (TextTreeNode)node, edge, direction, position.TextContainer.PositionGeneration,
System\Windows\Documents\TextRangeBase.cs (1)
1324TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer;
System\Windows\Documents\TextRangeEdit.cs (6)
592Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 619Invariant.Assert(position.TextContainer.Parent == null); 793DependencyObject parent = start.TextContainer.Parent; 1692one.TextContainer.DeleteContentInternal(one, two); 1696two.TextContainer.DeleteContentInternal(two, one);
System\Windows\Documents\TextRangeEditLists.cs (1)
772adjustedEnd = list.ElementEnd.TextContainer.End;
System\Windows\Documents\TextRangeEditTables.cs (9)
1141cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1324spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1337newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1408cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1519cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1925startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 2451firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2453firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2484spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
330navigator.TextContainer.InsertTextInternal(navigator, _text); 384navigator.TextContainer.InsertEmbeddedObjectInternal(navigator, embeddedObject); 430navigator.TextContainer.SetValues(navigator, TextTreeUndoUnit.ArrayToLocalValueEnumerator(_localValues)); 474TextPointer textPointerTable = new TextPointer(navigator.TextContainer.Start, _cpTable, LogicalDirection.Forward);