2 implementations of GetTextPositionFromPoint
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
598
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
MS\Internal\Documents\TextViewBase.cs (1)
465
ITextPointer ITextView.
GetTextPositionFromPoint
(Point point, bool snapToText)
45 references to GetTextPositionFromPoint
PresentationFramework (45)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
324
segStart = tv.
GetTextPositionFromPoint
(start, true);
342
segEnd = tv.
GetTextPositionFromPoint
(end, true);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
300
pointer = textView.
GetTextPositionFromPoint
(endPoint, true);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
939
ITextPointer pos = textView.
GetTextPositionFromPoint
(currentPosition, false);
MS\Internal\Documents\DocumentPageTextView.cs (3)
94
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
109
return _pageTextView.
GetTextPositionFromPoint
(point, snapToText);
227
positionOut = _pageTextView.
GetTextPositionFromPoint
(offset, true);
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
392
position = textView.
GetTextPositionFromPoint
(point, true);
MS\Internal\Documents\MultiPageTextView.cs (5)
88
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
1385
newPosition = pageTextView.
GetTextPositionFromPoint
(new Point(-1, -1), true);
1393
newPosition = pageTextView.
GetTextPositionFromPoint
((Point)pageTextView.RenderScope.RenderSize, true);
1441
newPosition = pageTextView.
GetTextPositionFromPoint
(suggestedOffset, true);
1484
pointRequest.Position = pageTextView.
GetTextPositionFromPoint
(point, true);
MS\Internal\Documents\TextBoxView.cs (1)
596
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextDocumentView.cs (1)
58
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextParagraphView.cs (1)
55
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
MS\Internal\Documents\TextViewBase.cs (2)
33
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
463
/// <see cref="ITextView.
GetTextPositionFromPoint
"/>
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
908
contentPosition = textView.
GetTextPositionFromPoint
(new Point(), true) as TextPointer;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1539
position = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, snapToText);
System\Windows\Controls\TextAdaptor.cs (3)
539
ITextPointer visibleStart = textView.
GetTextPositionFromPoint
(visibleRect.TopLeft, true);
540
ITextPointer visibleEnd = textView.
GetTextPositionFromPoint
(visibleRect.BottomRight, true);
669
ITextPointer position = textView.
GetTextPositionFromPoint
(location, true);
System\Windows\Controls\TextBox.cs (2)
1441
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
1470
textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).
GetTextPositionFromPoint
(point, /* snap to text */ true);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
78
ITextPointer childOTP = ChildTextView.
GetTextPositionFromPoint
(point, snapToText);
System\Windows\Documents\ImmComposition.cs (1)
1649
positionCurrent = view.
GetTextPositionFromPoint
(point, false);
System\windows\Documents\TextEditorDragDrop.cs (2)
127
ITextPointer cursorPosition = this.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
448
ITextPointer dropPosition = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/true);
System\windows\Documents\TextEditorMouse.cs (8)
65
ITextPointer cursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseDownPoint, /*snapToText:*/true);
140
position = textEditor.TextView.
GetTextPositionFromPoint
(point, true);
487
ITextPointer snappedCursorPosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/true);
527
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
533
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
543
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
548
acceleratedCursorPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
716
ITextPointer mouseMovePosition = This.TextView.
GetTextPositionFromPoint
(mouseMovePoint, /*snapToText:*/false);
System\windows\Documents\TextEditorSelection.cs (4)
618
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
732
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1446
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
1542
targetPosition = This.TextView.
GetTextPositionFromPoint
(targetPoint, /*snapToText:*/true);
System\windows\Documents\TextEditorTyping.cs (1)
1888
TextPointer pointer = (TextPointer)This.TextView.
GetTextPositionFromPoint
(Mouse.GetPosition(This.TextView.RenderScope), false);
System\windows\Documents\TextSelection.cs (1)
677
ITextPointer position = this.TextView.
GetTextPositionFromPoint
(point, /*snapToText:*/false);
System\Windows\Documents\TextStore.cs (2)
965
position = view.
GetTextPositionFromPoint
(milPoint, (flags & UnsafeNativeMethods.GetPositionFromPointFlags.GXFPF_NEAREST) != 0 /* snapToText */);
3014
positionCurrent = view.
GetTextPositionFromPoint
(point, false);