GetPositionFromPoint Method

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.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public TextPointer GetPositionFromPoint(
	Point point
)

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.TextPointer
A TextPointer that indicates the closest insertion position for the specified point.

The returned TextPointer is usually the position between two characters.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft