1 implementation of ITextSelection
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
26public sealed class TextSelection : TextRange, ITextSelection
135 references to ITextSelection
PresentationFramework (135)
MS\Internal\Documents\IFlowDocumentViewer.cs (10)
82ITextSelection TextSelection { get; set; } 202private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 217ITextSelection newTextSelection = arg as ITextSelection; 220ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 374ITextSelection IFlowDocumentViewer.TextSelection 553ITextSelection newTextSelection = arg as ITextSelection; 559ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 724ITextSelection IFlowDocumentViewer.TextSelection
MS\Internal\Documents\TextBoxView.cs (1)
1901var selection = _host.TextContainer.TextSelection;
System\Windows\Annotations\AnnotationHelper.cs (9)
361ITextSelection selection = GetTextSelection(viewer); 493ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 586ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 668private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 814ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 851private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 917ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1040private static ITextSelection GetTextSelection(FrameworkElement viewer) 1132ITextSelection selection = GetTextSelection(viewer);
System\Windows\Controls\DocumentViewer.cs (1)
1410internal ITextSelection TextSelection
System\Windows\Controls\FlowDocumentReader.cs (1)
905ITextSelection textSelection = null;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
214ITextSelection textSelection = null;
System\Windows\Controls\PasswordBox.cs (1)
1254private ITextSelection Selection
System\Windows\Controls\PasswordTextContainer.cs (2)
435ITextSelection ITextContainer.TextSelection 968private ITextSelection _textSelection;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2055((ITextSelection)textBox.TextSelectionInternal).RefreshCaret();
System\Windows\Controls\SinglePageViewer.cs (1)
143ITextSelection textSelection = null;
System\windows\Documents\CaretElement.cs (2)
772return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).CaretElement; 781return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
276ITextSelection ITextContainer.TextSelection 473internal ITextSelection TextSelection 806private ITextSelection _textSelection;
System\Windows\Documents\FixedTextContainer.cs (3)
244ITextSelection ITextContainer.TextSelection 550internal ITextSelection TextSelection 654private ITextSelection _textSelection;
System\Windows\Documents\ITextContainer.cs (1)
130ITextSelection TextSelection { get; set; }
System\Windows\Documents\NullTextContainer.cs (1)
231ITextSelection ITextContainer.TextSelection
System\Windows\Documents\TextContainer.cs (3)
1748ITextSelection ITextContainer.TextSelection 1958internal ITextSelection TextSelection 3659private ITextSelection _textSelection;
System\windows\Documents\TextEditor.cs (3)
306internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 888internal ITextSelection Selection 1988private ITextSelection _selection;
System\windows\Documents\TextEditorDragDrop.cs (5)
92ITextSelection selection = _textEditor.Selection; 153ITextSelection selection = _textEditor.Selection; 209private void SourceDoDragDrop(ITextSelection selection, IDataObject dataObject) 508ITextSelection selection = _textEditor.Selection; 605private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
System\windows\Documents\TextEditorMouse.cs (1)
618ITextSelection selection = This.Selection;
System\windows\Documents\TextEditorSpelling.cs (1)
332private static bool IsSelectionIgnoringErrors(ITextSelection selection)
System\Windows\Documents\TextParentUndoUnit.cs (3)
34internal TextParentUndoUnit(ITextSelection selection) 39internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 198private readonly ITextSelection _selection;
System\Windows\Documents\TextRangeEditTables.cs (2)
576Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 590Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
System\windows\Documents\TextSelection.cs (74)
42ITextSelection thisSelection = (ITextSelection)this; 109ITextSelection thisSelection = this; 129ITextSelection thisSelection = this; 253ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 300((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 323void ITextSelection.UpdateCaretAndHighlight() 391ITextPointer ITextSelection.AnchorPosition 397return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 404ITextPointer ITextSelection.MovingPosition 408ITextSelection thisSelection = this; 451void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 536ITextSelection thisSelection = this; 558void ITextSelection.ExtendToPosition(ITextPointer position) 563ITextSelection thisSelection = (ITextSelection)this; 581bool ITextSelection.ExtendToNextInsertionPosition(LogicalDirection direction) 588ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 589ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 655ITextSelection thisSelection = (ITextSelection)this; 661bool ITextSelection.Contains(Point point) 663ITextSelection thisSelection = (ITextSelection)this; 717void ITextSelection.OnDetach() 719ITextSelection thisSelection = (ITextSelection)this; 737void ITextSelection.OnTextViewUpdated() 762void ITextSelection.DetachFromVisualTree() 768void ITextSelection.RefreshCaret() 775void ITextSelection.OnInterimSelectionChanged(bool interimSelection) 791void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 793ITextSelection thisSelection = (ITextSelection)this; 808void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 810ITextSelection thisSelection = (ITextSelection)this; 828ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 1024bool ITextSelection.ExtendToNextTableRow(LogicalDirection direction) 1041if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1118bool ITextSelection.IsInterimSelection 1161return (TextPointer)((ITextSelection)this).AnchorPosition; 1174return (TextPointer)((ITextSelection)this).MovingPosition; 1185((ITextSelection)this).SetCaretToPosition(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace); 1193return ((ITextSelection)this).ExtendToNextInsertionPosition(direction); 1225((ITextSelection)threadLocalStore.FocusedTextSelection).RefreshCaret(); 1233return ((ITextSelection)this).Contains(point); 1413ITextSelection thisSelection = this; 1444if (((ITextSelection)this).Start is TextPointer) 1521if (((ITextSelection)this).Start is TextPointer) 1527((ITextSelection)this).RefreshCaret(); 1537if (!(((ITextSelection)this).Start is TextPointer)) 1619ITextSelection focusedTextSelection; 1715void ITextSelection.ValidateLayout() 1717((ITextSelection)this).MovingPosition.ValidateLayout(); 1740CaretElement ITextSelection.CaretElement 1750bool ITextSelection.CoversEntireContent 1754ITextSelection This = this; 1795ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1822ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1866ITextSelection thisSelection = (ITextSelection)this; 1889ITextSelection thisSelection = this; 1941ITextSelection thisSelection = (ITextSelection)this; 2033private static void RefreshCaret(TextEditor textEditor, ITextSelection textSelection) 2061void ITextSelection.OnCaretNavigation() 2168private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2209private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2257private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection) 2619TextEditor ITextSelection.TextEditor 2627ITextView ITextSelection.TextView 2639return ((ITextSelection)this).TextView; 2673ITextSelection This = this;
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
33internal TextSelectionHighlightLayer(ITextSelection selection) 299Invariant.Assert(_selection == (ITextSelection)sender); 386private readonly ITextSelection _selection;
System\Windows\Documents\TextStore.cs (2)
4133private ITextSelection TextSelection 4340internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)