2 implementations of GetTextPositionFromPoint
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
604
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
469
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
45 references to GetTextPositionFromPoint
PresentationFramework (45)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
345
segStart = tv.
GetTextPositionFromPoint
(start, true);
363
segEnd = tv.
GetTextPositionFromPoint
(end, true);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
319
pointer = textView.
GetTextPositionFromPoint
(endPoint, true);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
967
ITextPointer pos = textView.
GetTextPositionFromPoint
(currentPosition, false);
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (3)
98
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
113
return _pageTextView.
GetTextPositionFromPoint
(point, snapToText);
231
positionOut = _pageTextView.
GetTextPositionFromPoint
(offset, true);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
410
position = textView.
GetTextPositionFromPoint
(point, true);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (5)
92
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
1392
newPosition = pageTextView.
GetTextPositionFromPoint
(new Point(-1, -1), true);
1400
newPosition = pageTextView.
GetTextPositionFromPoint
((Point)pageTextView.RenderScope.RenderSize, true);
1448
newPosition = pageTextView.
GetTextPositionFromPoint
(suggestedOffset, true);
1491
pointRequest.Position = pageTextView.
GetTextPositionFromPoint
(point, true);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
602
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
67
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
68
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
37
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
467
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
917
contentPosition = textView.
GetTextPositionFromPoint
(new Point(), true) as TextPointer;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1574
position = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, snapToText);
src\Framework\System\Windows\Controls\TextAdaptor.cs (3)
523
ITextPointer visibleStart = textView.
GetTextPositionFromPoint
(visibleRect.TopLeft, true);
524
ITextPointer visibleEnd = textView.
GetTextPositionFromPoint
(visibleRect.BottomRight, true);
656
ITextPointer position = textView.
GetTextPositionFromPoint
(location, true);
src\Framework\System\Windows\Controls\TextBox.cs (2)
1440
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
1469
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
92
ITextPointer childOTP = ChildTextView.
GetTextPositionFromPoint
(point, snapToText);
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
1831
positionCurrent = view.
GetTextPositionFromPoint
(point, false);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
147
ITextPointer cursorPosition = this.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
477
ITextPointer dropPosition = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/true);
src\Framework\System\windows\Documents\TextEditorMouse.cs (8)
81
ITextPointer cursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
156
position = textEditor.TextView.
GetTextPositionFromPoint
(point, true);
503
ITextPointer snappedCursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/true);
543
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
549
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
559
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
564
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
731
ITextPointer mouseMovePosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/false);
src\Framework\System\windows\Documents\TextEditorSelection.cs (4)
642
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
756
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1470
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1566
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1927
TextPointer pointer = (TextPointer)This.TextView.
GetTextPositionFromPoint
(Mouse.GetPosition(This.TextView.RenderScope), false);
src\Framework\System\windows\Documents\TextSelection.cs (1)
683
ITextPointer position = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/false);
src\Framework\System\Windows\Documents\TextStore.cs (2)
845
position = view.
GetTextPositionFromPoint
(milPoint, (flags & UnsafeNativeMethods.GetPositionFromPointFlags.GXFPF_NEAREST) != 0 /* snapToText */);
2933
positionCurrent = view.
GetTextPositionFromPoint
(point, false);