1 implementation of ITextSelection
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
29public sealed class TextSelection : TextRange, ITextSelection
135 references to ITextSelection
PresentationFramework (135)
MS\Internal\Documents\IFlowDocumentViewer.cs (10)
85ITextSelection TextSelection { get; set; } 205private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 220ITextSelection newTextSelection = arg as ITextSelection; 223ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 377ITextSelection IFlowDocumentViewer.TextSelection 556ITextSelection newTextSelection = arg as ITextSelection; 562ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 727ITextSelection IFlowDocumentViewer.TextSelection
MS\Internal\Documents\TextBoxView.cs (1)
1903var selection = _host.TextContainer.TextSelection;
System\Windows\Annotations\AnnotationHelper.cs (9)
373ITextSelection selection = GetTextSelection(viewer); 505ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 598ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 680private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 826ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 863private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 929ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1052private static ITextSelection GetTextSelection(FrameworkElement viewer) 1144ITextSelection selection = GetTextSelection(viewer);
System\Windows\Controls\DocumentViewer.cs (1)
1422internal ITextSelection TextSelection
System\Windows\Controls\FlowDocumentReader.cs (1)
910ITextSelection textSelection = null;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
217ITextSelection textSelection = null;
System\Windows\Controls\PasswordBox.cs (1)
1262private ITextSelection Selection
System\Windows\Controls\PasswordTextContainer.cs (2)
438ITextSelection ITextContainer.TextSelection 971private ITextSelection _textSelection;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2064((ITextSelection)textBox.TextSelectionInternal).RefreshCaret();
System\Windows\Controls\SinglePageViewer.cs (1)
146ITextSelection textSelection = null;
System\windows\Documents\CaretElement.cs (2)
775return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).CaretElement; 784return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
284ITextSelection ITextContainer.TextSelection 481internal ITextSelection TextSelection 814private ITextSelection _textSelection;
System\Windows\Documents\FixedTextContainer.cs (3)
253ITextSelection ITextContainer.TextSelection 559internal ITextSelection TextSelection 663private ITextSelection _textSelection;
System\Windows\Documents\ITextContainer.cs (1)
131ITextSelection TextSelection { get; set; }
System\Windows\Documents\NullTextContainer.cs (1)
235ITextSelection ITextContainer.TextSelection
System\Windows\Documents\TextContainer.cs (3)
1753ITextSelection ITextContainer.TextSelection 1963internal ITextSelection TextSelection 3664private ITextSelection _textSelection;
System\windows\Documents\TextEditor.cs (3)
312internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 894internal ITextSelection Selection 1994private ITextSelection _selection;
System\windows\Documents\TextEditorDragDrop.cs (5)
109ITextSelection selection = _textEditor.Selection; 170ITextSelection selection = _textEditor.Selection; 226private void SourceDoDragDrop(ITextSelection selection, IDataObject dataObject) 525ITextSelection selection = _textEditor.Selection; 622private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
System\windows\Documents\TextEditorMouse.cs (1)
632ITextSelection selection = This.Selection;
System\windows\Documents\TextEditorSpelling.cs (1)
333private static bool IsSelectionIgnoringErrors(ITextSelection selection)
System\Windows\Documents\TextParentUndoUnit.cs (3)
45internal TextParentUndoUnit(ITextSelection selection) 50internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 209private readonly ITextSelection _selection;
System\Windows\Documents\TextRangeEditTables.cs (2)
578Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 592Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
System\windows\Documents\TextSelection.cs (74)
45ITextSelection thisSelection = (ITextSelection)this; 112ITextSelection thisSelection = this; 132ITextSelection thisSelection = this; 256ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 303((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 326void ITextSelection.UpdateCaretAndHighlight() 394ITextPointer ITextSelection.AnchorPosition 400return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 407ITextPointer ITextSelection.MovingPosition 411ITextSelection thisSelection = this; 454void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 539ITextSelection thisSelection = this; 561void ITextSelection.ExtendToPosition(ITextPointer position) 566ITextSelection thisSelection = (ITextSelection)this; 584bool ITextSelection.ExtendToNextInsertionPosition(LogicalDirection direction) 591ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 592ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 658ITextSelection thisSelection = (ITextSelection)this; 664bool ITextSelection.Contains(Point point) 666ITextSelection thisSelection = (ITextSelection)this; 720void ITextSelection.OnDetach() 722ITextSelection thisSelection = (ITextSelection)this; 740void ITextSelection.OnTextViewUpdated() 765void ITextSelection.DetachFromVisualTree() 771void ITextSelection.RefreshCaret() 778void ITextSelection.OnInterimSelectionChanged(bool interimSelection) 794void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 796ITextSelection thisSelection = (ITextSelection)this; 811void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 813ITextSelection thisSelection = (ITextSelection)this; 831ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 1027bool ITextSelection.ExtendToNextTableRow(LogicalDirection direction) 1044if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1121bool ITextSelection.IsInterimSelection 1164return (TextPointer)((ITextSelection)this).AnchorPosition; 1177return (TextPointer)((ITextSelection)this).MovingPosition; 1188((ITextSelection)this).SetCaretToPosition(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace); 1196return ((ITextSelection)this).ExtendToNextInsertionPosition(direction); 1228((ITextSelection)threadLocalStore.FocusedTextSelection).RefreshCaret(); 1236return ((ITextSelection)this).Contains(point); 1416ITextSelection thisSelection = this; 1447if (((ITextSelection)this).Start is TextPointer) 1524if (((ITextSelection)this).Start is TextPointer) 1530((ITextSelection)this).RefreshCaret(); 1540if (!(((ITextSelection)this).Start is TextPointer)) 1622ITextSelection focusedTextSelection; 1718void ITextSelection.ValidateLayout() 1720((ITextSelection)this).MovingPosition.ValidateLayout(); 1743CaretElement ITextSelection.CaretElement 1753bool ITextSelection.CoversEntireContent 1757ITextSelection This = this; 1798ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1825ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1869ITextSelection thisSelection = (ITextSelection)this; 1892ITextSelection thisSelection = this; 1944ITextSelection thisSelection = (ITextSelection)this; 2036private static void RefreshCaret(TextEditor textEditor, ITextSelection textSelection) 2064void ITextSelection.OnCaretNavigation() 2171private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2212private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2260private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection) 2622TextEditor ITextSelection.TextEditor 2630ITextView ITextSelection.TextView 2642return ((ITextSelection)this).TextView; 2676ITextSelection This = this;
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
35internal TextSelectionHighlightLayer(ITextSelection selection) 301Invariant.Assert(_selection == (ITextSelection)sender); 388private readonly ITextSelection _selection;
System\Windows\Documents\TextStore.cs (2)
4144private ITextSelection TextSelection 4351internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)