5 implementations of TextSelection
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
438ITextSelection ITextContainer.TextSelection
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
284ITextSelection ITextContainer.TextSelection
System\Windows\Documents\FixedTextContainer.cs (1)
253ITextSelection ITextContainer.TextSelection
System\Windows\Documents\NullTextContainer.cs (1)
235ITextSelection ITextContainer.TextSelection
System\Windows\Documents\TextContainer.cs (1)
1753ITextSelection ITextContainer.TextSelection
2 writes to TextSelection
PresentationFramework (2)
System\windows\Documents\TextEditor.cs (2)
78textContainer.TextSelection = _selection; 176_textContainer.TextSelection = null;
24 references to TextSelection
PresentationFramework (24)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
499_selection = textContainer.TextSelection as ITextRange; 961ITextRange selection = container.TextSelection as ITextRange;
MS\Internal\Documents\DocumentViewerHelper.cs (4)
393if (textContainer.TextSelection != null) 395if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) && 404contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextBoxLine.cs (2)
213var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 456var textEditor = position.TextContainer.TextSelection?.TextEditor;
MS\Internal\Documents\TextBoxView.cs (1)
1903var selection = _host.TextContainer.TextSelection;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1039if (textContainer != null && this.TextEditorRenderScope != null && textContainer.TextSelection == null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1486Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
System\Windows\Controls\TextAdaptor.cs (8)
52if (_textContainer.TextSelection != null) 54_textContainer.TextSelection.Changed += new EventHandler(OnTextSelectionChanged); 63if (_textContainer != null && _textContainer.TextSelection != null) 65_textContainer.TextSelection.Changed -= new EventHandler(OnTextSelectionChanged); 205if (_textContainer.TextSelection != null) 207_textContainer.TextSelection.Select(start, end); 497ITextRange selection = _textContainer.TextSelection; 706return (_textContainer.TextSelection == null) ? SupportedTextSelection.None : SupportedTextSelection.Single;
System\Windows\Controls\TextRangeAdaptor.cs (2)
284if (tp.TextContainer.TextSelection != null) 286readOnly = tp.TextContainer.TextSelection.TextEditor.IsReadOnly;
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
45if (textContainer.TextSelection != null) 47_parentUndoUnit = new TextParentUndoUnit(textContainer.TextSelection);
System\windows\Documents\TextEditor.cs (1)
1218string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);