Share via


Layout.GetOffsetForHorizontal(Int32, Single) Method

Definition

Get the character offset on the specified line whose position is closest to the specified horizontal position.

[Android.Runtime.Register("getOffsetForHorizontal", "(IF)I", "GetGetOffsetForHorizontal_IFHandler")]
public virtual int GetOffsetForHorizontal (int line, float horiz);
[<Android.Runtime.Register("getOffsetForHorizontal", "(IF)I", "GetGetOffsetForHorizontal_IFHandler")>]
abstract member GetOffsetForHorizontal : int * single -> int
override this.GetOffsetForHorizontal : int * single -> int

Parameters

line
Int32
horiz
Single

Returns

Attributes

Remarks

Get the character offset on the specified line whose position is closest to the specified horizontal position.

Java documentation for android.text.Layout.getOffsetForHorizontal(int, float).

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