1 implementation of SetCaretToPosition
PresentationFramework (1)
System\windows\Documents\TextSelection.cs (1)
454
void ITextSelection.
SetCaretToPosition
(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
48 references to SetCaretToPosition
PresentationFramework (48)
MS\Internal\Documents\IFlowDocumentViewer.cs (2)
226
textSelection.
SetCaretToPosition
(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
565
textSelection.
SetCaretToPosition
(newTextSelection.AnchorPosition, newTextSelection.MovingPosition.LogicalDirection, true, true);
System\Windows\Annotations\AnnotationHelper.cs (2)
528
selection.
SetCaretToPosition
(selection.MovingPosition, selection.MovingPosition.LogicalDirection, true, true);
963
selection.
SetCaretToPosition
(selection.MovingPosition, selection.MovingPosition.LogicalDirection, true, true);
System\windows\Documents\TextEditorCopyPaste.cs (1)
411
This.Selection.
SetCaretToPosition
(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
System\windows\Documents\TextEditorDragDrop.cs (2)
565
selection.
SetCaretToPosition
(dropPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
593
selection.
SetCaretToPosition
(dropPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
System\windows\Documents\TextEditorSelection.cs (30)
285
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
314
This.Selection.
SetCaretToPosition
(newMovingPosition, newMovingPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
329
This.Selection.
SetCaretToPosition
(nextPosition != null ? nextPosition : lineEndPosition,
374
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
404
This.Selection.
SetCaretToPosition
(newMovingPosition, newMovingPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
419
This.Selection.
SetCaretToPosition
(previousPosition != null ? previousPosition : lineStartPosition,
471
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
483
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
488
This.Selection.
SetCaretToPosition
(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
523
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
532
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
541
This.Selection.
SetCaretToPosition
(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
576
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
618
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
656
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
693
This.Selection.
SetCaretToPosition
(position, position.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
732
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
770
This.Selection.
SetCaretToPosition
(targetPosition, targetPosition.LogicalDirection, /*allowStopAtLineEnd:*/
821
This.Selection.
SetCaretToPosition
(caretPosition, LogicalDirection.Forward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
873
This.Selection.
SetCaretToPosition
(caretPosition, orientation, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
901
This.Selection.
SetCaretToPosition
(This.TextContainer.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
930
This.Selection.
SetCaretToPosition
(This.TextContainer.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1800
This.Selection.
SetCaretToPosition
(e.NewPosition, e.NewPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
1830
This.Selection.
SetCaretToPosition
(e.NewPosition, e.NewPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
2092
textEditor.Selection.
SetCaretToPosition
(movingEnd, contentDirection, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2136
textEditor.Selection.
SetCaretToPosition
(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2145
textEditor.Selection.
SetCaretToPosition
(wordBoundary, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2156
textEditor.Selection.
SetCaretToPosition
(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2165
textEditor.Selection.
SetCaretToPosition
(wordBoundary, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2414
This.Selection.
SetCaretToPosition
(position, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
System\windows\Documents\TextEditorTyping.cs (6)
732
This.Selection.
SetCaretToPosition
(position, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
780
This.Selection.
SetCaretToPosition
(deletePosition, directionOfDelete, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true);
1090
This.Selection.
SetCaretToPosition
(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1181
This.Selection.
SetCaretToPosition
(range.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1417
This.Selection.
SetCaretToPosition
(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1568
This.Selection.
SetCaretToPosition
(caretPosition, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
System\windows\Documents\TextSelection.cs (3)
303
((ITextSelection)this).
SetCaretToPosition
(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1188
((ITextSelection)this).
SetCaretToPosition
(caretPosition, direction, allowStopAtLineEnd, allowStopNearSpace);
1969
thisSelection.
SetCaretToPosition
(cursorPosition, cursorPosition.LogicalDirection, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/false);
System\Windows\Documents\TextStore.cs (2)
378
this.TextSelection.
SetCaretToPosition
(start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);
2022
this.TextSelection.
SetCaretToPosition
(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true);