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