2 implementations of GetTextPositionFromPoint
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
600
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
MS\Internal\Documents\TextViewBase.cs (1)
467
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
45 references to GetTextPositionFromPoint
PresentationFramework (45)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
335
segStart = tv.
GetTextPositionFromPoint
(start, true);
353
segEnd = tv.
GetTextPositionFromPoint
(end, true);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
309
pointer = textView.
GetTextPositionFromPoint
(endPoint, true);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
945
ITextPointer pos = textView.
GetTextPositionFromPoint
(currentPosition, false);
MS\Internal\Documents\DocumentPageTextView.cs (3)
96
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
111
return _pageTextView.
GetTextPositionFromPoint
(point, snapToText);
229
positionOut = _pageTextView.
GetTextPositionFromPoint
(offset, true);
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
396
position = textView.
GetTextPositionFromPoint
(point, true);
MS\Internal\Documents\MultiPageTextView.cs (5)
90
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
1387
newPosition = pageTextView.
GetTextPositionFromPoint
(new Point(-1, -1), true);
1395
newPosition = pageTextView.
GetTextPositionFromPoint
((Point)pageTextView.RenderScope.RenderSize, true);
1443
newPosition = pageTextView.
GetTextPositionFromPoint
(suggestedOffset, true);
1486
pointRequest.Position = pageTextView.
GetTextPositionFromPoint
(point, true);
MS\Internal\Documents\TextBoxView.cs (1)
598
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextDocumentView.cs (1)
60
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextParagraphView.cs (1)
61
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextViewBase.cs (2)
35
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
465
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
911
contentPosition = textView.
GetTextPositionFromPoint
(new Point(), true) as TextPointer;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1548
position = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, snapToText);
System\Windows\Controls\TextAdaptor.cs (3)
542
ITextPointer visibleStart = textView.
GetTextPositionFromPoint
(visibleRect.TopLeft, true);
543
ITextPointer visibleEnd = textView.
GetTextPositionFromPoint
(visibleRect.BottomRight, true);
672
ITextPointer position = textView.
GetTextPositionFromPoint
(location, true);
System\Windows\Controls\TextBox.cs (2)
1448
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
1477
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
86
ITextPointer childOTP = ChildTextView.
GetTextPositionFromPoint
(point, snapToText);
System\Windows\Documents\ImmComposition.cs (1)
1657
positionCurrent = view.
GetTextPositionFromPoint
(point, false);
System\windows\Documents\TextEditorDragDrop.cs (2)
144
ITextPointer cursorPosition = this.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
465
ITextPointer dropPosition = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/true);
System\windows\Documents\TextEditorMouse.cs (8)
79
ITextPointer cursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
154
position = textEditor.TextView.
GetTextPositionFromPoint
(point, true);
501
ITextPointer snappedCursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/true);
541
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
547
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
557
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
562
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
730
ITextPointer mouseMovePosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/false);
System\windows\Documents\TextEditorSelection.cs (4)
633
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
747
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1461
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1557
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
System\windows\Documents\TextEditorTyping.cs (1)
1897
TextPointer pointer = (TextPointer)This.TextView.
GetTextPositionFromPoint
(Mouse.GetPosition(This.TextView.RenderScope), false);
System\windows\Documents\TextSelection.cs (1)
680
ITextPointer position = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/false);
System\Windows\Documents\TextStore.cs (2)
976
position = view.
GetTextPositionFromPoint
(milPoint, (flags & UnsafeNativeMethods.GetPositionFromPointFlags.GXFPF_NEAREST) != 0 /* snapToText */);
3025
positionCurrent = view.
GetTextPositionFromPoint
(point, false);