5 implementations of TextSelection
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
434ITextSelection ITextContainer.TextSelection
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
267ITextSelection ITextContainer.TextSelection
System\Windows\Documents\FixedTextContainer.cs (1)
236ITextSelection ITextContainer.TextSelection
System\Windows\Documents\NullTextContainer.cs (1)
230ITextSelection ITextContainer.TextSelection
System\Windows\Documents\TextContainer.cs (1)
1741ITextSelection ITextContainer.TextSelection
2 writes to TextSelection
PresentationFramework (2)
System\windows\Documents\TextEditor.cs (2)
66textContainer.TextSelection = _selection; 164_textContainer.TextSelection = null;
23 references to TextSelection
PresentationFramework (23)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
492_selection = textContainer.TextSelection as ITextRange; 958ITextRange selection = container.TextSelection as ITextRange;
MS\Internal\Documents\DocumentViewerHelper.cs (4)
390if (textContainer.TextSelection != null) 392if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) && 401contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextBoxLine.cs (2)
205var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 448var textEditor = position.TextContainer.TextSelection?.TextEditor;
MS\Internal\Documents\TextBoxView.cs (1)
1860var selection = _host.TextContainer.TextSelection;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1013if (textContainer != null && this.TextEditorRenderScope != null && textContainer.TextSelection == null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1424Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
System\Windows\Controls\TextAdaptor.cs (7)
48if (_textContainer.TextSelection != null) 50_textContainer.TextSelection.Changed += new EventHandler(OnTextSelectionChanged); 59if (_textContainer != null && _textContainer.TextSelection != null) 61_textContainer.TextSelection.Changed -= new EventHandler(OnTextSelectionChanged); 204_textContainer.TextSelection?.Select(start, end); 487ITextRange selection = _textContainer.TextSelection; 696return (_textContainer.TextSelection == null) ? SupportedTextSelection.None : SupportedTextSelection.Single;
System\Windows\Controls\TextRangeAdaptor.cs (2)
281if (tp.TextContainer.TextSelection != null) 283readOnly = tp.TextContainer.TextSelection.TextEditor.IsReadOnly;
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
42if (textContainer.TextSelection != null) 44_parentUndoUnit = new TextParentUndoUnit(textContainer.TextSelection);
System\windows\Documents\TextEditor.cs (1)
1205string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);