1 implementation of SetCaretToPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
451
void ITextSelection.
SetCaretToPosition
(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
48 references to SetCaretToPosition
PresentationFramework (48)
MS\Internal\Documents\IFlowDocumentViewer.cs (2)
223
textSelection.
SetCaretToPosition
(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
562
textSelection.
SetCaretToPosition
(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\Windows\Annotations\AnnotationHelper.cs (2)
516
selection.
SetCaretToPosition
(selection.MovingPosition, selection.MovingPosition.LogicalDirection, true, true);
951
selection.
SetCaretToPosition
(selection.MovingPosition, selection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditorCopyPaste.cs (1)
398
This.Selection.
SetCaretToPosition
(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
System\windows\Documents\TextEditorDragDrop.cs (2)
548
selection.
SetCaretToPosition
(dropPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
576
selection.
SetCaretToPosition
(dropPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
System\windows\Documents\TextEditorSelection.cs (30)
270
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
299
This.Selection.
SetCaretToPosition
(newMovingPosition, newMovingPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
314
This.Selection.
SetCaretToPosition
(nextPosition != null ? nextPosition : lineEndPosition,
359
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
389
This.Selection.
SetCaretToPosition
(newMovingPosition, newMovingPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
404
This.Selection.
SetCaretToPosition
(previousPosition != null ? previousPosition : lineStartPosition,
456
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
468
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
473
This.Selection.
SetCaretToPosition
(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
508
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
517
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
526
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
561
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
603
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
641
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
678
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
717
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
755
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/
806
This.Selection.
SetCaretToPosition
(caretPosition, LogicalDirection.Forward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
858
This.Selection.
SetCaretToPosition
(caretPosition, orientation, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
886
This.Selection.
SetCaretToPosition
(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
915
This.Selection.
SetCaretToPosition
(This.TextContainer.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1785
This.Selection.
SetCaretToPosition
(e.NewPosition, e.NewPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
1815
This.Selection.
SetCaretToPosition
(e.NewPosition, e.NewPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
2077
textEditor.Selection.
SetCaretToPosition
(movingEnd, contentDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2121
textEditor.Selection.
SetCaretToPosition
(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2130
textEditor.Selection.
SetCaretToPosition
(wordBoundary, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2141
textEditor.Selection.
SetCaretToPosition
(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2150
textEditor.Selection.
SetCaretToPosition
(wordBoundary, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2399
This.Selection.
SetCaretToPosition
(position, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
System\windows\Documents\TextEditorTyping.cs (6)
723
This.Selection.
SetCaretToPosition
(position, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
771
This.Selection.
SetCaretToPosition
(deletePosition, directionOfDelete, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
1081
This.Selection.
SetCaretToPosition
(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1172
This.Selection.
SetCaretToPosition
(range.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1408
This.Selection.
SetCaretToPosition
(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1559
This.Selection.
SetCaretToPosition
(caretPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
System\windows\Documents\TextSelection.cs (3)
300
((ITextSelection)this).
SetCaretToPosition
(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1185
((ITextSelection)this).
SetCaretToPosition
(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace);
1966
thisSelection.
SetCaretToPosition
(cursorPosition, cursorPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
System\Windows\Documents\TextStore.cs (2)
367
this.TextSelection.
SetCaretToPosition
(start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
2011
this.TextSelection.
SetCaretToPosition
(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);