5 implementations of TextSelection
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
435ITextSelection ITextContainer.TextSelection
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
268ITextSelection ITextContainer.TextSelection
System\Windows\Documents\FixedTextContainer.cs (1)
237ITextSelection ITextContainer.TextSelection
System\Windows\Documents\NullTextContainer.cs (1)
231ITextSelection ITextContainer.TextSelection
System\Windows\Documents\TextContainer.cs (1)
1748ITextSelection ITextContainer.TextSelection
2 writes to TextSelection
PresentationFramework (2)
System\windows\Documents\TextEditor.cs (2)
67textContainer.TextSelection = _selection; 165_textContainer.TextSelection = null;
24 references to TextSelection
PresentationFramework (24)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
493_selection = textContainer.TextSelection as ITextRange; 961ITextRange selection = container.TextSelection as ITextRange;
MS\Internal\Documents\DocumentViewerHelper.cs (4)
391if (textContainer.TextSelection != null) 393if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) && 402contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextBoxLine.cs (2)
206var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 449var textEditor = position.TextContainer.TextSelection?.TextEditor;
MS\Internal\Documents\TextBoxView.cs (1)
1903var selection = _host.TextContainer.TextSelection;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1023if (textContainer != null && this.TextEditorRenderScope != null && textContainer.TextSelection == null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1479Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
System\Windows\Controls\TextAdaptor.cs (8)
49if (_textContainer.TextSelection != null) 51_textContainer.TextSelection.Changed += new EventHandler(OnTextSelectionChanged); 60if (_textContainer != null && _textContainer.TextSelection != null) 62_textContainer.TextSelection.Changed -= new EventHandler(OnTextSelectionChanged); 202if (_textContainer.TextSelection != null) 204_textContainer.TextSelection.Select(start, end); 494ITextRange selection = _textContainer.TextSelection; 703return (_textContainer.TextSelection == null) ? SupportedTextSelection.None : SupportedTextSelection.Single;
System\Windows\Controls\TextRangeAdaptor.cs (2)
282if (tp.TextContainer.TextSelection != null) 284readOnly = tp.TextContainer.TextSelection.TextEditor.IsReadOnly;
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
43if (textContainer.TextSelection != null) 45_parentUndoUnit = new TextParentUndoUnit(textContainer.TextSelection);
System\windows\Documents\TextEditor.cs (1)
1209string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);