71 references to TextContainer
PresentationFramework (71)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
242if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 302if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
1036return flowDocument.ContentStart.TextContainer == textPointer.TextContainer;
src\Framework\System\Windows\Documents\AnchoredBlock.cs (2)
51insertionPosition.TextContainer.BeginChange(); 70insertionPosition.TextContainer.EndChange();
src\Framework\System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
27_textContainer = textPointerTable.TextContainer;
src\Framework\System\Windows\Documents\InlineUIContainer.cs (2)
69insertionPosition.TextContainer.BeginChange(); 85insertionPosition.TextContainer.EndChange();
src\Framework\System\Windows\Documents\LineBreak.cs (2)
42insertionPosition.TextContainer.BeginChange(); 56insertionPosition.TextContainer.EndChange();
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (4)
53_generation = _start.TextContainer.Generation; 106if (_generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 169if (_start != null && _generation != _start.TextContainer.Generation && !IsLogicalChildrenIterationInProgress) 228if (_start != null && _generation != _start.TextContainer.Generation)
src\Framework\System\Windows\Documents\Run.cs (2)
61insertionPosition.TextContainer.BeginChange(); 82insertionPosition.TextContainer.EndChange();
src\Framework\System\Windows\Documents\Span.cs (6)
60insertionPosition.TextContainer.BeginChange(); 79insertionPosition.TextContainer.EndChange(); 107if (start.TextContainer != end.TextContainer) 116start.TextContainer.BeginChange(); 167start.TextContainer.EndChange();
src\Framework\System\Windows\Documents\TextContainer.cs (3)
966Invariant.Assert(startPosition.TextContainer == this); 967Invariant.Assert(endPosition.TextContainer == this); 3274if (position.TextContainer != this)
src\Framework\System\Windows\Documents\TextEffectResolver.cs (1)
86effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart);
src\Framework\System\Windows\Documents\TextElement.cs (8)
164if (tree == start.TextContainer) 199start.TextContainer.BeginChange(); 202start.TextContainer.InsertElementInternal(start, end, this); 206start.TextContainer.EndChange(); 217start.TextContainer.BeginChange(); 220start.TextContainer.InsertElementInternal(start, end, this); 224start.TextContainer.EndChange(); 269tree = textPosition.TextContainer;
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (3)
52_generation = _start.TextContainer.Generation; 120if (_start != null && _generation != _start.TextContainer.Generation) 174if (_start != null && _generation != _start.TextContainer.Generation)
src\Framework\System\Windows\Documents\TextPointer.cs (12)
452return (this.TextContainer == textPosition.TextContainer); 1437if (this.TextContainer.Parent != null) 1439Type containerType = this.TextContainer.Parent.GetType(); 1707return TextContainer.Start; 1724return TextContainer.End; 2385offsetPosition = TextContainer.GetInternalOffset(position); 3661return this.TextContainer; 3935if (offset < 1 || offset > position.TextContainer.InternalSymbolCount - 1) 3940position.TextContainer.GetNodeAndEdgeAtOffset(offset, out node, out edge); 3951Initialize(position.TextContainer, (TextTreeNode)node, edge, direction, position.TextContainer.PositionGeneration,
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1341TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (6)
596Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 623Invariant.Assert(position.TextContainer.Parent == null); 797DependencyObject parent = start.TextContainer.Parent; 1696one.TextContainer.DeleteContentInternal(one, two); 1700two.TextContainer.DeleteContentInternal(two, one);
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (1)
774adjustedEnd = list.ElementEnd.TextContainer.End;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (9)
1142cell.ContentStart.TextContainer.SetValue(cell.ContentStart, TableCell.RowSpanProperty, cell.RowSpan + (rowCount > 0 ? rowCount : -rowCount)); 1325spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - deletedRowsCount); 1338newCell.ContentStart.TextContainer.SetValue(newCell.ContentStart, TableCell.RowSpanProperty, spannedCell.RowSpan - (nextRow.Index - spannedCell.Row.Index)); 1409cellInsertAfter.ContentStart.TextContainer.SetValue(cellInsertAfter.ContentStart, TableCell.ColumnSpanProperty, cellInsertAfter.ColumnSpan + 1); 1520cellDelete.ContentStart.TextContainer.SetValue(cellDelete.ContentStart, TableCell.ColumnSpanProperty, cellDelete.ColumnSpan - 1); 1926startCell.ContentStart.TextContainer.SetValue(startCell.ContentStart, TableCell.ColumnSpanProperty, startCell.ColumnSpan - 1); 2452firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.RowSpanProperty, rowSpan); 2454firstCell.ContentStart.TextContainer.SetValue(firstCell.ContentStart, TableCell.ColumnSpanProperty, columnSpan); 2485spannedCell.ContentStart.TextContainer.SetValue(spannedCell.ContentStart, TableCell.RowSpanProperty, rowSpan);
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
355navigator.TextContainer.InsertTextInternal(navigator, _text); 409navigator.TextContainer.InsertEmbeddedObjectInternal(navigator, embeddedObject); 455navigator.TextContainer.SetValues(navigator, TextTreeUndoUnit.ArrayToLocalValueEnumerator(_localValues)); 499TextPointer textPointerTable = new TextPointer(navigator.TextContainer.Start, _cpTable, LogicalDirection.Forward);