53 references to TextContainer
PresentationFramework (53)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
100textContainer = textEditor.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
967_textEditor.TextContainer.TextView = null;
System\Windows\Controls\PasswordBox.cs (1)
855Invariant.Assert(_textEditor.TextContainer == _textContainer);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1424Invariant.Assert(_textEditor.TextContainer == _textContainer); 1425Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
System\Windows\Controls\RichTextBox.cs (1)
121Invariant.Assert(this.TextEditor.TextContainer == this.TextContainer);
System\Windows\Documents\ImmComposition.cs (8)
101_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 124_editor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 133_editor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 1663edge = _editor.TextContainer.Start.GetOffsetToPosition(positionCurrent); 1664int startComposition = _editor.TextContainer.Start.GetOffsetToPosition(_startComposition); 1665int endComposition = _editor.TextContainer.Start.GetOffsetToPosition(_endComposition); 1753parent = _editor.TextContainer.Parent; 1784parent = _editor.TextContainer.Parent;
System\Windows\Documents\Speller.cs (12)
42_textEditor.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 45if (_textEditor.TextContainer.SymbolCount > 0) 70_textEditor.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 82_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 229StaticTextPointer pointer = _textEditor.TextContainer.CreateStaticPointerAtOffset(0); 293_statusTable.MarkDirtyRange(_textEditor.TextContainer.Start, _textEditor.TextContainer.End); 295if (_textEditor.TextContainer.SymbolCount > 0) 460_statusTable = new SpellerStatusTable(_textEditor.TextContainer.Start, _highlightLayer); 462_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer); 499Invariant.Assert(sender == _textEditor.TextContainer); 624searchStart = _textEditor.TextContainer.Start;
System\windows\Documents\TextEditor.cs (5)
81TextContainer.Changed += new TextContainerChangedEventHandler(OnTextContainerChanged); 1134if (this.TextContainer is TextContainer) 1136undoManager = ((TextContainer)this.TextContainer).UndoManager; 1176ITextContainer textContainer = this.TextContainer; 1504cursorPosition = this.TextContainer.End;
System\windows\Documents\TextEditorMouse.cs (2)
565snappedCursorPosition = This.TextContainer.End; 757DependencyObject textContainerOwner = textEditor.TextContainer.Parent;
System\windows\Documents\TextEditorSelection.cs (10)
157This.Selection.Select(This.TextContainer.Start, This.TextContainer.End); 629targetPosition = This.TextContainer.End; 743targetPosition = This.TextContainer.Start; 886This.Selection.SetCaretToPosition(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 915This.Selection.SetCaretToPosition(This.TextContainer.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1457targetPosition = This.TextContainer.End; 1553targetPosition = This.TextContainer.Start; 1719ExtendSelectionAndBringIntoView(This.TextContainer.Start, This); 1747ExtendSelectionAndBringIntoView(This.TextContainer.End, This);
System\windows\Documents\TextEditorTyping.cs (2)
1221UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1237UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\windows\Documents\TextSelection.cs (2)
40: base(textEditor.TextContainer.Start, textEditor.TextContainer.Start)
System\Windows\Documents\TextStore.cs (6)
2088get { return this.TextEditor.TextContainer; } 2320UndoManager undoManager = UndoManager.GetUndoManager(textEditor.TextContainer.Parent); 2379_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2380_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward); 2398_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionStartOffset, LogicalDirection.Backward); 2399_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.CreatePointerAtOffset(_previousCompositionEndOffset, LogicalDirection.Forward);