35 references to TextContainer
PresentationFramework (35)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
53textContainer = ((TextElement)contentElement).TextContainer;
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (5)
162TextPointer startPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.BeforeStart, LogicalDirection.Backward); 163TextPointer endPosition = new TextPointer(item.TextContainer, item.TextElementNode, ElementEdge.AfterEnd, LogicalDirection.Backward); 165Owner.TextContainer.BeginChange(); 168Owner.TextContainer.DeleteContentInternal(startPosition, endPosition); 172Owner.TextContainer.EndChange();
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
512ITextContainer textContainer = textElement.TextContainer; 525ITextContainer textContainer = textElement.TextContainer; 639if (!textElement.IsInTree || textElement.TextContainer != textContainer)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
964if ((e as TextElement).TextContainer == _structuralCache.TextContainer)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
61ITextView textView = textElement.TextContainer.TextView; 114ITextView textView = textElement.TextContainer.TextView; 168ITextView textView = textElement.TextContainer.TextView; 240ITextView textView = textElement?.TextContainer?.TextView;
src\Framework\System\Windows\Controls\TextBlock.cs (3)
3499if (textBlock._complexContent.TextContainer != ((TextElement)element).TextContainer) 3645if ((e as TextElement).TextContainer == _complexContent.TextContainer) 3712DependencyObject parent = te.TextContainer.Parent;
src\Framework\System\Windows\Documents\BlockUIContainer.cs (1)
81TextContainer textContainer = this.TextContainer;
src\Framework\System\Windows\Documents\Hyperlink.cs (3)
240return (this.TextContainer.TextSelection != null && 241!this.TextContainer.TextSelection.TextEditor.IsReadOnly); 854e.Cursor = link.TextContainer.TextSelection.TextEditor._cursor;
src\Framework\System\Windows\Documents\InlineUIContainer.cs (1)
112TextContainer textContainer = this.TextContainer;
src\Framework\System\Windows\Documents\List.cs (1)
244TextContainer textContainer = this.TextContainer;
src\Framework\System\Windows\Documents\Run.cs (2)
252TextContainer textContainer = run.TextContainer; 276FlowDocument document = run.TextContainer.Parent as FlowDocument;
src\Framework\System\Windows\Documents\TextContainer.cs (4)
985bool sameTextContainer = (this == element.TextContainer); 994element.TextContainer.BeginChange(); 1002elementText = element.TextContainer.ExtractElementInternal(element, true /* deep */, out extractChangeEventArgs); 1011element.TextContainer.EndChange();
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
736textContainer = ((TextElement)_owner).TextContainer;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
38newElement.TextContainer.SetValues(newElement.ContentStart, element.GetLocalValueEnumerator()); 888UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1766UndoManager undoManager = table.TextContainer.UndoManager;
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
489_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);
src\Framework\System\Windows\Documents\TextTreeUndo.cs (1)
63TextContainer textContainer = element.TextContainer;