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;