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