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