System\windows\Documents\TextSelection.cs (74)
41ITextSelection thisSelection = (ITextSelection)this;
108ITextSelection thisSelection = this;
128ITextSelection thisSelection = this;
240ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
287((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
310void ITextSelection.UpdateCaretAndHighlight()
378ITextPointer ITextSelection.AnchorPosition
384return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition;
391ITextPointer ITextSelection.MovingPosition
395ITextSelection thisSelection = this;
438void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
523ITextSelection thisSelection = this;
545void ITextSelection.ExtendToPosition(ITextPointer position)
550ITextSelection thisSelection = (ITextSelection)this;
568bool ITextSelection.ExtendToNextInsertionPosition(LogicalDirection direction)
575ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
576ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
642ITextSelection thisSelection = (ITextSelection)this;
648bool ITextSelection.Contains(Point point)
650ITextSelection thisSelection = (ITextSelection)this;
704void ITextSelection.OnDetach()
706ITextSelection thisSelection = (ITextSelection)this;
724void ITextSelection.OnTextViewUpdated()
746void ITextSelection.DetachFromVisualTree()
752void ITextSelection.RefreshCaret()
759void ITextSelection.OnInterimSelectionChanged(bool interimSelection)
775void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
777ITextSelection thisSelection = (ITextSelection)this;
792void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection)
794ITextSelection thisSelection = (ITextSelection)this;
812ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
1008bool ITextSelection.ExtendToNextTableRow(LogicalDirection direction)
1025if (!TextRangeEditTables.IsTableCellRange((TextPointer)_anchorPosition, (TextPointer)((ITextSelection)this).MovingPosition, /*includeCellAtMovingPosition:*/false, out anchorCell, out movingCell))
1102bool ITextSelection.IsInterimSelection
1145return (TextPointer)((ITextSelection)this).AnchorPosition;
1158return (TextPointer)((ITextSelection)this).MovingPosition;
1169((ITextSelection)this).SetCaretToPosition(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace);
1177return ((ITextSelection)this).ExtendToNextInsertionPosition(direction);
1209((ITextSelection)threadLocalStore.FocusedTextSelection).RefreshCaret();
1217return ((ITextSelection)this).Contains(point);
1397ITextSelection thisSelection = this;
1428if (((ITextSelection)this).Start is TextPointer)
1505if (((ITextSelection)this).Start is TextPointer)
1511((ITextSelection)this).RefreshCaret();
1521if (!(((ITextSelection)this).Start is TextPointer))
1603ITextSelection focusedTextSelection;
1699void ITextSelection.ValidateLayout()
1701((ITextSelection)this).MovingPosition.ValidateLayout();
1724CaretElement ITextSelection.CaretElement
1734bool ITextSelection.CoversEntireContent
1738ITextSelection This = this;
1779ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer;
1806ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer;
1850ITextSelection thisSelection = (ITextSelection)this;
1873ITextSelection thisSelection = this;
1925ITextSelection thisSelection = (ITextSelection)this;
2017private static void RefreshCaret(TextEditor textEditor, ITextSelection textSelection)
2045void ITextSelection.OnCaretNavigation()
2152private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection)
2193private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition)
2241private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection)
2605TextEditor ITextSelection.TextEditor
2613ITextView ITextSelection.TextView
2625return ((ITextSelection)this).TextView;
2659ITextSelection This = this;