53 references to TextContainer
PresentationFramework (53)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
117textContainer = textEditor.TextContainer;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
982_textEditor.TextContainer.TextView = null;
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
886Invariant.Assert(_textEditor.TextContainer == _textContainer);
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1511Invariant.Assert(_textEditor.TextContainer == _textContainer); 1512Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
127Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer);
src\Framework\System\Windows\Documents\ImmComposition.cs (8)
144_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 173_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 182_editor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 1858edge = _editor.TextContainer.Start.GetOffsetToPosition(positionCurrent); 1859int startComposition = _editor.TextContainer.Start.GetOffsetToPosition(_startComposition); 1860int endComposition = _editor.TextContainer.Start.GetOffsetToPosition(_endComposition); 1964parent = _editor.TextContainer.Parent; 1995parent = _editor.TextContainer.Parent;
src\Framework\System\Windows\Documents\Speller.cs (12)
47_textEditor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 50if (_textEditor.TextContainer.SymbolCount > 0) 79_textEditor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 91_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 257StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 321_statusTable.MarkDirtyRange(_textEditor.TextContainer.Start, _textEditor.TextContainer.End); 323if (_textEditor.TextContainer.SymbolCount > 0) 526_statusTable = new SpellerStatusTable(_textEditor.TextContainer.Start, _highlightLayer); 528_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer); 565Invariant.Assert(sender == _textEditor.TextContainer); 693searchStart = _textEditor.TextContainer.Start;
src\Framework\System\windows\Documents\TextEditor.cs (5)
96TextContainer.Changed += new TextContainerChangedEventHandler(OnTextContainerChanged); 1173if (this.TextContainer is TextContainer) 1175undoManager = ((TextContainer)this.TextContainer).UndoManager; 1215ITextContainer textContainer = this.TextContainer; 1550cursorPosition = this.TextContainer.End;
src\Framework\System\windows\Documents\TextEditorMouse.cs (2)
584snappedCursorPosition = This.TextContainer.End; 775DependencyObject textContainerOwner = textEditor.TextContainer.Parent;
src\Framework\System\windows\Documents\TextEditorSelection.cs (10)
180This.Selection.Select(This.TextContainer.Start, This.TextContainer.End); 653targetPosition = This.TextContainer.End; 767targetPosition = This.TextContainer.Start; 910This.Selection.SetCaretToPosition(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 939This.Selection.SetCaretToPosition(This.TextContainer.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1481targetPosition = This.TextContainer.End; 1577targetPosition = This.TextContainer.Start; 1743ExtendSelectionAndBringIntoView(This.TextContainer.Start, This); 1771ExtendSelectionAndBringIntoView(This.TextContainer.End, This);
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
1256UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1272UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
src\Framework\System\windows\Documents\TextSelection.cs (2)
46: base(textEditor.TextContainer.Start, textEditor.TextContainer.Start)
src\Framework\System\Windows\Documents\TextStore.cs (6)
1974get { return this.TextEditor.TextContainer; } 2201UndoManager undoManager = UndoManager.GetUndoManager(textEditor.TextContainer.Parent); 2261_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2262_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward); 2280_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2281_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward);