5 implementations of TextSelection
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
444ITextSelection ITextContainer.TextSelection
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
288ITextSelection ITextContainer.TextSelection
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
257ITextSelection ITextContainer.TextSelection
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
238ITextSelection ITextContainer.TextSelection
src\Framework\System\Windows\Documents\TextContainer.cs (1)
1768ITextSelection ITextContainer.TextSelection
2 writes to TextSelection
PresentationFramework (2)
src\Framework\System\windows\Documents\TextEditor.cs (2)
82textContainer.TextSelection = _selection; 186_textContainer.TextSelection = null;
24 references to TextSelection
PresentationFramework (24)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (2)
514_selection = textContainer.TextSelection as ITextRange; 983ITextRange selection = container.TextSelection as ITextRange;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (4)
413if (textContainer.TextSelection != null) 415if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) && 424contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
215var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 458var textEditor = position.TextContainer.TextSelection?.TextEditor;
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1901var selection = _host.TextContainer.TextSelection;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1051if (textContainer != null && this.TextEditorRenderScope != null && textContainer.TextSelection == null)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1512Invariant.Assert(_textEditor.TextContainer.TextSelection == _textEditor.Selection);
src\Framework\System\Windows\Controls\TextAdaptor.cs (8)
60if (_textContainer.TextSelection != null) 62_textContainer.TextSelection.Changed += new EventHandler(OnTextSelectionChanged); 71if (_textContainer != null && _textContainer.TextSelection != null) 73_textContainer.TextSelection.Changed -= new EventHandler(OnTextSelectionChanged); 213if (_textContainer.TextSelection != null) 215_textContainer.TextSelection.Select(start, end); 478ITextRange selection = _textContainer.TextSelection; 690return (_textContainer.TextSelection == null) ? SupportedTextSelection.None : SupportedTextSelection.Single;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
292if (tp.TextContainer.TextSelection != null) 294readOnly = tp.TextContainer.TextSelection.TextEditor.IsReadOnly;
src\Framework\System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
45if (textContainer.TextSelection != null) 47_parentUndoUnit = new TextParentUndoUnit(textContainer.TextSelection);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1245string textAdjacent = textContainer.TextSelection.AnchorPosition.GetTextInRun(LogicalDirection.Backward);