System\windows\Documents\TextSelection.cs (74)
42ITextSelection thisSelection = (ITextSelection)this;
109ITextSelection thisSelection = this;
129ITextSelection thisSelection = this;
241ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
288((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
311void ITextSelection.UpdateCaretAndHighlight()
379ITextPointer ITextSelection.AnchorPosition
385return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition;
392ITextPointer ITextSelection.MovingPosition
396ITextSelection thisSelection = this;
439void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
524ITextSelection thisSelection = this;
546void ITextSelection.ExtendToPosition(ITextPointer position)
551ITextSelection thisSelection = (ITextSelection)this;
569bool ITextSelection.ExtendToNextInsertionPosition(LogicalDirection direction)
576ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
577ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
643ITextSelection thisSelection = (ITextSelection)this;
649bool ITextSelection.Contains(Point point)
651ITextSelection thisSelection = (ITextSelection)this;
705void ITextSelection.OnDetach()
707ITextSelection thisSelection = (ITextSelection)this;
725void ITextSelection.OnTextViewUpdated()
747void ITextSelection.DetachFromVisualTree()
753void ITextSelection.RefreshCaret()
760void ITextSelection.OnInterimSelectionChanged(bool interimSelection)
776void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
778ITextSelection thisSelection = (ITextSelection)this;
793void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection)
795ITextSelection thisSelection = (ITextSelection)this;
813ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
1009bool ITextSelection.ExtendToNextTableRow(LogicalDirection direction)
1026if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell))
1103bool ITextSelection.IsInterimSelection
1146return (TextPointer)((ITextSelection)this).AnchorPosition;
1159return (TextPointer)((ITextSelection)this).MovingPosition;
1170((ITextSelection)this).SetCaretToPosition(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace);
1178return ((ITextSelection)this).ExtendToNextInsertionPosition(direction);
1210((ITextSelection)threadLocalStore.FocusedTextSelection).RefreshCaret();
1218return ((ITextSelection)this).Contains(point);
1398ITextSelection thisSelection = this;
1429if (((ITextSelection)this).Start is TextPointer)
1506if (((ITextSelection)this).Start is TextPointer)
1512((ITextSelection)this).RefreshCaret();
1522if (!(((ITextSelection)this).Start is TextPointer))
1604ITextSelection focusedTextSelection;
1700void ITextSelection.ValidateLayout()
1702((ITextSelection)this).MovingPosition.ValidateLayout();
1725CaretElement ITextSelection.CaretElement
1735bool ITextSelection.CoversEntireContent
1739ITextSelection This = this;
1780ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer;
1807ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer;
1851ITextSelection thisSelection = (ITextSelection)this;
1874ITextSelection thisSelection = this;
1926ITextSelection thisSelection = (ITextSelection)this;
2018private static void RefreshCaret(TextEditor textEditor, ITextSelection textSelection)
2046void ITextSelection.OnCaretNavigation()
2153private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection)
2194private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition)
2242private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection)
2606TextEditor ITextSelection.TextEditor
2614ITextView ITextSelection.TextView
2626return ((ITextSelection)this).TextView;
2660ITextSelection This = this;