5 implementations of TextSelection
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
435
ITextSelection ITextContainer.
TextSelection
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
268
ITextSelection ITextContainer.
TextSelection
System\Windows\Documents\FixedTextContainer.cs (1)
237
ITextSelection ITextContainer.
TextSelection
System\Windows\Documents\NullTextContainer.cs (1)
231
ITextSelection ITextContainer.
TextSelection
System\Windows\Documents\TextContainer.cs (1)
1748
ITextSelection ITextContainer.
TextSelection
2 writes to TextSelection
PresentationFramework (2)
System\windows\Documents\TextEditor.cs (2)
67
textContainer.
TextSelection
= _selection;
165
_textContainer.
TextSelection
= null;
24 references to TextSelection
PresentationFramework (24)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
493
_selection = textContainer.
TextSelection
as ITextRange;
961
ITextRange selection = container.
TextSelection
as ITextRange;
MS\Internal\Documents\DocumentViewerHelper.cs (4)
391
if (textContainer.
TextSelection
!= null)
393
if ((textContainer.
TextSelection
.IsEmpty || !textContainer.
TextSelection
.TextEditor.UiScope.IsFocused) &&
402
contextMenuPosition = textContainer.
TextSelection
.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextBoxLine.cs (2)
206
var uiScope = _owner?.Host?.TextContainer?.
TextSelection
?.TextEditor?.UiScope;
449
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)
1023
if (textContainer != null && this.TextEditorRenderScope != null && textContainer.
TextSelection
== null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1479
Invariant.Assert(_textEditor.TextContainer.
TextSelection
== _textEditor.Selection);
System\Windows\Controls\TextAdaptor.cs (8)
49
if (_textContainer.
TextSelection
!= null)
51
_textContainer.
TextSelection
.Changed += new EventHandler(OnTextSelectionChanged);
60
if (_textContainer != null && _textContainer.
TextSelection
!= null)
62
_textContainer.
TextSelection
.Changed -= new EventHandler(OnTextSelectionChanged);
202
if (_textContainer.
TextSelection
!= null)
204
_textContainer.
TextSelection
.Select(start, end);
494
ITextRange selection = _textContainer.
TextSelection
;
703
return (_textContainer.
TextSelection
== null) ? SupportedTextSelection.None : SupportedTextSelection.Single;
System\Windows\Controls\TextRangeAdaptor.cs (2)
282
if (tp.TextContainer.
TextSelection
!= null)
284
readOnly = tp.TextContainer.
TextSelection
.TextEditor.IsReadOnly;
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
43
if (textContainer.
TextSelection
!= null)
45
_parentUndoUnit = new TextParentUndoUnit(textContainer.
TextSelection
);
System\windows\Documents\TextEditor.cs (1)
1209
string textAdjacent = textContainer.
TextSelection
.AnchorPosition.GetTextInRun(LogicalDirection.Backward);