71 references to TextContainer
PresentationFramework (71)
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
234if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 291if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer)
System\Windows\Controls\SinglePageViewer.cs (2)
1029return flowDocument.ContentStart.TextContainer == textPointer.TextContainer;
System\Windows\Documents\AnchoredBlock.cs (2)
51insertionPosition.TextContainer.BeginChange(); 70insertionPosition.TextContainer.EndChange();
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
21_textContainer = textPointerTable.TextContainer;
System\Windows\Documents\InlineUIContainer.cs (2)
69insertionPosition.TextContainer.BeginChange(); 85insertionPosition.TextContainer.EndChange();
System\Windows\Documents\LineBreak.cs (2)
37insertionPosition.TextContainer.BeginChange(); 51insertionPosition.TextContainer.EndChange();
System\Windows\Documents\RangeContentEnumerator.cs (4)
45_generation = _start.TextContainer.Generation; 98if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 161if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 220if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\Run.cs (2)
61insertionPosition.TextContainer.BeginChange(); 82insertionPosition.TextContainer.EndChange();
System\Windows\Documents\Span.cs (6)
60insertionPosition.TextContainer.BeginChange(); 79insertionPosition.TextContainer.EndChange(); 101if (start.TextContainer != end.TextContainer) 110start.TextContainer.BeginChange(); 161start.TextContainer.EndChange();
System\Windows\Documents\TextContainer.cs (3)
951Invariant.Assert(startPosition.TextContainer == this); 952Invariant.Assert(endPosition.TextContainer == this); 3258if (position.TextContainer != this)
System\Windows\Documents\TextEffectResolver.cs (1)
77effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart);
System\Windows\Documents\TextElement.cs (8)
159if (tree == start.TextContainer) 194start.TextContainer.BeginChange(); 197start.TextContainer.InsertElementInternal(start, end, this); 201start.TextContainer.EndChange(); 212start.TextContainer.BeginChange(); 215start.TextContainer.InsertElementInternal(start, end, this); 219start.TextContainer.EndChange(); 264tree = textPosition.TextContainer;
System\Windows\Documents\TextElementEnumerator.cs (3)
46_generation = _start.TextContainer.Generation; 114if (_start != null && _generation != _start.TextContainer.Generation) 168if (_start != null && _generation != _start.TextContainer.Generation)
System\Windows\Documents\TextPointer.cs (12)
441return (this.TextContainer == textPosition.TextContainer); 1423if (this.TextContainer.Parent != null) 1425Type containerType = this.TextContainer.Parent.GetType(); 1693return TextContainer.Start; 1710return TextContainer.End; 2365offsetPosition = TextContainer.GetInternalOffset(position); 3635return this.TextContainer; 3909if (offset < 1 || offset > position.TextContainer.InternalSymbolCount - 1) 3914position.TextContainer.GetNodeAndEdgeAtOffset(offset, out node, out edge); 3925Initialize(position.TextContainer, (TextTreeNode)node, edge, direction, position.TextContainer.PositionGeneration,
System\Windows\Documents\TextRangeBase.cs (1)
1327TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer;
System\Windows\Documents\TextRangeEdit.cs (6)
594Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 621Invariant.Assert(position.TextContainer.Parent == null); 795DependencyObject parent = start.TextContainer.Parent; 1694one.TextContainer.DeleteContentInternal(one, two); 1698two.TextContainer.DeleteContentInternal(two, one);
System\Windows\Documents\TextRangeEditLists.cs (1)
772adjustedEnd = list.ElementEnd.TextContainer.End;
System\Windows\Documents\TextRangeEditTables.cs (9)
1139cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1322spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1335newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1406cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1517cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1923startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 2449firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2451firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2482spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
332navigator.TextContainer.InsertTextInternal(navigator, _text); 386navigator.TextContainer.InsertEmbeddedObjectInternal(navigator, embeddedObject); 432navigator.TextContainer.SetValues(navigator, TextTreeUndoUnit.ArrayToLocalValueEnumerator(_localValues)); 476TextPointer textPointerTable = new TextPointer(navigator.TextContainer.Start, _cpTable, LogicalDirection.Forward);