1 implementation of ITextSelection
PresentationFramework (1)
src\Framework\System\windows\Documents\TextSelection.cs (1)
32public sealed class TextSelection : TextRange, ITextSelection
135 references to ITextSelection
PresentationFramework (135)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (10)
86ITextSelection TextSelection { get; set; } 206private bool IsValidTextSelectionForDocument(ITextSelection textSelection, FlowDocument flowDocument) 221ITextSelection newTextSelection = arg as ITextSelection; 224ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 378ITextSelection IFlowDocumentViewer.TextSelection 557ITextSelection newTextSelection = arg as ITextSelection; 563ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 728ITextSelection IFlowDocumentViewer.TextSelection
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1901var selection = _host.TextContainer.TextSelection;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (9)
379ITextSelection selection = GetTextSelection(viewer); 512ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 605ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 687private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 833ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 870private static bool CheckCaret(ITextSelection selection, TextAnchor anchor, XmlQualifiedName type) 937ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1060private static ITextSelection GetTextSelection(FrameworkElement viewer) 1155ITextSelection selection = GetTextSelection(viewer);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1442internal ITextSelection TextSelection
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
916ITextSelection textSelection = null;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
218ITextSelection textSelection = null;
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
1296private ITextSelection Selection
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (2)
444ITextSelection ITextContainer.TextSelection 977private ITextSelection _textSelection;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2095((ITextSelection)textBox.TextSelectionInternal).RefreshCaret();
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
148ITextSelection textSelection = null;
src\Framework\System\windows\Documents\CaretElement.cs (2)
779return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).CaretElement; 788return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
288ITextSelection ITextContainer.TextSelection 488internal ITextSelection TextSelection 822private ITextSelection _textSelection;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (3)
257ITextSelection ITextContainer.TextSelection 566internal ITextSelection TextSelection 671private ITextSelection _textSelection;
src\Framework\System\Windows\Documents\ITextContainer.cs (1)
134ITextSelection TextSelection { get; set; }
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
238ITextSelection ITextContainer.TextSelection
src\Framework\System\Windows\Documents\TextContainer.cs (3)
1768ITextSelection ITextContainer.TextSelection 1978internal ITextSelection TextSelection 3680private ITextSelection _textSelection;
src\Framework\System\windows\Documents\TextEditor.cs (3)
322internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 921internal ITextSelection Selection 2045private ITextSelection _selection;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (5)
112ITextSelection selection = _textEditor.Selection; 181ITextSelection selection = _textEditor.Selection; 237private void SourceDoDragDrop(ITextSelection selection, IDataObject dataObject) 537ITextSelection selection = _textEditor.Selection; 634private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
633ITextSelection selection = This.Selection;
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
335private static bool IsSelectionIgnoringErrors(ITextSelection selection)
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (3)
50internal TextParentUndoUnit(ITextSelection selection) 55internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 214private readonly ITextSelection _selection;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
581Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 595Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
src\Framework\System\windows\Documents\TextSelection.cs (74)
48ITextSelection thisSelection = (ITextSelection)this; 115ITextSelection thisSelection = this; 135ITextSelection thisSelection = this; 259ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 306((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 329void ITextSelection.UpdateCaretAndHighlight() 397ITextPointer ITextSelection.AnchorPosition 403return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 410ITextPointer ITextSelection.MovingPosition 414ITextSelection thisSelection = this; 457void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 542ITextSelection thisSelection = this; 564void ITextSelection.ExtendToPosition(ITextPointer position) 569ITextSelection thisSelection = (ITextSelection)this; 587bool ITextSelection.ExtendToNextInsertionPosition(LogicalDirection direction) 594ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 595ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 661ITextSelection thisSelection = (ITextSelection)this; 667bool ITextSelection.Contains(Point point) 669ITextSelection thisSelection = (ITextSelection)this; 723void ITextSelection.OnDetach() 725ITextSelection thisSelection = (ITextSelection)this; 743void ITextSelection.OnTextViewUpdated() 768void ITextSelection.DetachFromVisualTree() 774void ITextSelection.RefreshCaret() 781void ITextSelection.OnInterimSelectionChanged(bool interimSelection) 797void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 799ITextSelection thisSelection = (ITextSelection)this; 814void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 816ITextSelection thisSelection = (ITextSelection)this; 834ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 1030bool ITextSelection.ExtendToNextTableRow(LogicalDirection direction) 1047if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell)) 1124bool ITextSelection.IsInterimSelection 1167return (TextPointer)((ITextSelection)this).AnchorPosition; 1180return (TextPointer)((ITextSelection)this).MovingPosition; 1191((ITextSelection)this).SetCaretToPosition(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace); 1199return ((ITextSelection)this).ExtendToNextInsertionPosition(direction); 1231((ITextSelection)threadLocalStore.FocusedTextSelection).RefreshCaret(); 1239return ((ITextSelection)this).Contains(point); 1419ITextSelection thisSelection = this; 1450if (((ITextSelection)this).Start is TextPointer) 1527if (((ITextSelection)this).Start is TextPointer) 1533((ITextSelection)this).RefreshCaret(); 1543if (!(((ITextSelection)this).Start is TextPointer)) 1625ITextSelection focusedTextSelection; 1726void ITextSelection.ValidateLayout() 1728((ITextSelection)this).MovingPosition.ValidateLayout(); 1751CaretElement ITextSelection.CaretElement 1761bool ITextSelection.CoversEntireContent 1765ITextSelection This = this; 1806ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1833ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1877ITextSelection thisSelection = (ITextSelection)this; 1900ITextSelection thisSelection = this; 1952ITextSelection thisSelection = (ITextSelection)this; 2044private static void RefreshCaret(TextEditor textEditor, ITextSelection textSelection) 2072void ITextSelection.OnCaretNavigation() 2179private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2220private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2268private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection) 2635TextEditor ITextSelection.TextEditor 2643ITextView ITextSelection.TextView 2655return ((ITextSelection)this).TextView; 2689ITextSelection This = this;
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (3)
40internal TextSelectionHighlightLayer(ITextSelection selection) 307Invariant.Assert(_selection == (ITextSelection)sender); 394private readonly ITextSelection _selection;
src\Framework\System\Windows\Documents\TextStore.cs (2)
3961private ITextSelection TextSelection 4191internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)