Android.Widget.TextView.GetOffsetForPosition Method
Get the character offset closest to the specified absolute position.

Syntax

[Android.Runtime.Register("getOffsetForPosition", "(FF)I", "GetGetOffsetForPosition_FFHandler")]
public virtual int GetOffsetForPosition (float x, float y)

Parameters

x
The horizontal absolute position of a point on screen
y
The vertical absolute position of a point on screen

Returns

Documentation for this section has not yet been entered.

Remarks

Get the character offset closest to the specified absolute position. A typical use case is to pass the result of Android.Views.MotionEvent.GetX and Android.Views.MotionEvent.GetY to this method.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14