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;