53 references to TextContainer
PresentationFramework (53)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
102textContainer = textEditor.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
974_textEditor.TextContainer.TextView = null;
System\Windows\Controls\PasswordBox.cs (1)
870Invariant.Assert(_textEditor.TextContainer == _textContainer);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1485Invariant.Assert(_textEditor.TextContainer == _textContainer); 1486Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
System\Windows\Controls\RichTextBox.cs (1)
125Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer);
System\Windows\Documents\ImmComposition.cs (8)
117_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 140_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 149_editor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 1684edge = _editor.TextContainer.Start.GetOffsetToPosition(positionCurrent); 1685int startComposition = _editor.TextContainer.Start.GetOffsetToPosition(_startComposition); 1686int endComposition = _editor.TextContainer.Start.GetOffsetToPosition(_endComposition); 1774parent = _editor.TextContainer.Parent; 1805parent = _editor.TextContainer.Parent;
System\Windows\Documents\Speller.cs (12)
46_textEditor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 49if (_textEditor.TextContainer.SymbolCount > 0) 74_textEditor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 86_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 233StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 297_statusTable.MarkDirtyRange(_textEditor.TextContainer.Start, _textEditor.TextContainer.End); 299if (_textEditor.TextContainer.SymbolCount > 0) 464_statusTable = new SpellerStatusTable(_textEditor.TextContainer.Start, _highlightLayer); 466_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer); 503Invariant.Assert(sender == _textEditor.TextContainer); 631searchStart = _textEditor.TextContainer.Start;
System\windows\Documents\TextEditor.cs (5)
92TextContainer.Changed += new TextContainerChangedEventHandler(OnTextContainerChanged); 1146if (this.TextContainer is TextContainer) 1148undoManager = ((TextContainer)this.TextContainer).UndoManager; 1188ITextContainer textContainer = this.TextContainer; 1522cursorPosition = this.TextContainer.End;
System\windows\Documents\TextEditorMouse.cs (2)
582snappedCursorPosition = This.TextContainer.End; 774DependencyObject textContainerOwner = textEditor.TextContainer.Parent;
System\windows\Documents\TextEditorSelection.cs (10)
172This.Selection.Select(This.TextContainer.Start, This.TextContainer.End); 644targetPosition = This.TextContainer.End; 758targetPosition = This.TextContainer.Start; 901This.Selection.SetCaretToPosition(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 930This.Selection.SetCaretToPosition(This.TextContainer.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1472targetPosition = This.TextContainer.End; 1568targetPosition = This.TextContainer.Start; 1734ExtendSelectionAndBringIntoView(This.TextContainer.Start, This); 1762ExtendSelectionAndBringIntoView(This.TextContainer.End, This);
System\windows\Documents\TextEditorTyping.cs (2)
1239UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1255UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\windows\Documents\TextSelection.cs (2)
43: base(textEditor.TextContainer.Start, textEditor.TextContainer.Start)
System\Windows\Documents\TextStore.cs (6)
2105get { return this.TextEditor.TextContainer; } 2337UndoManager undoManager = UndoManager.GetUndoManager(textEditor.TextContainer.Parent); 2396_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2397_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward); 2415_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2416_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward);