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)
1026return flowDocument.ContentStart.TextContainer == textPointer.TextContainer;
System\Windows\Documents\AnchoredBlock.cs (2)
50insertionPosition.TextContainer.BeginChange(); 69insertionPosition.TextContainer.EndChange();
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
21_textContainer = textPointerTable.TextContainer;
System\Windows\Documents\InlineUIContainer.cs (2)
67insertionPosition.TextContainer.BeginChange(); 83insertionPosition.TextContainer.EndChange();
System\Windows\Documents\LineBreak.cs (2)
37insertionPosition.TextContainer.BeginChange(); 51insertionPosition.TextContainer.EndChange();
System\Windows\Documents\RangeContentEnumerator.cs (4)
41_generation = _start.TextContainer.Generation; 94if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 157if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 216if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\Run.cs (2)
61insertionPosition.TextContainer.BeginChange(); 82insertionPosition.TextContainer.EndChange();
System\Windows\Documents\Span.cs (6)
59insertionPosition.TextContainer.BeginChange(); 78insertionPosition.TextContainer.EndChange(); 100if (start.TextContainer != end.TextContainer) 109start.TextContainer.BeginChange(); 160start.TextContainer.EndChange();
System\Windows\Documents\TextContainer.cs (3)
946Invariant.Assert(startPosition.TextContainer == this); 947Invariant.Assert(endPosition.TextContainer == this); 3253if (position.TextContainer != this)
System\Windows\Documents\TextEffectResolver.cs (1)
73effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart);
System\Windows\Documents\TextElement.cs (8)
158if (tree == start.TextContainer) 193start.TextContainer.BeginChange(); 196start.TextContainer.InsertElementInternal(start, end, this); 200start.TextContainer.EndChange(); 211start.TextContainer.BeginChange(); 214start.TextContainer.InsertElementInternal(start, end, this); 218start.TextContainer.EndChange(); 263tree = textPosition.TextContainer;
System\Windows\Documents\TextElementEnumerator.cs (3)
40_generation = _start.TextContainer.Generation; 108if (_start != null && _generation != _start.TextContainer.Generation) 162if (_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)
770adjustedEnd = list.ElementEnd.TextContainer.End;
System\Windows\Documents\TextRangeEditTables.cs (9)
1137cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1320spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1333newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1404cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1515cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1921startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 2447firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2449firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2480spannedCell.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);