TextView.GetOffsetForPosition(Single, Single) TextView.GetOffsetForPosition(Single, Single) Method

Definition

Get the character offset closest to the specified absolute position.

[Android.Runtime.Register("getOffsetForPosition", "(FF)I", "GetGetOffsetForPosition_FFHandler", ApiSince=14)]
public virtual int GetOffsetForPosition (float x, float y);
abstract member GetOffsetForPosition : single * single -> int
override this.GetOffsetForPosition : single * single -> int

Parameters

x
Single Single

The horizontal absolute position of a point on screen

y
Single Single

The vertical absolute position of a point on screen

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to