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