RichTextBox.GetPositionFromPoint Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a TextPointer that indicates the closest insertion position for the specified point.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- point
- Type: System.Windows.Point
A point in the coordinate space of the RichTextBox for which the closest insertion position is retrieved.
Return Value
Type: System.Windows.Documents.TextPointerA TextPointer that indicates the closest insertion position for the specified point.
The returned TextPointer is usually the position between two characters.
Show: