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;