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