Language

Layout.GetOffsetToLeftOf(Int32) Method

Definition

Finds the text offset reached by moving the cursor visually to the left.

[Android.Runtime.Register("getOffsetToLeftOf", "(I)I", "GetGetOffsetToLeftOf_IHandler")]
public virtual int GetOffsetToLeftOf(int offset);
[<Android.Runtime.Register("getOffsetToLeftOf", "(I)I", "GetGetOffsetToLeftOf_IHandler")>]
abstract member GetOffsetToLeftOf : int -> int
override this.GetOffsetToLeftOf : int -> int

Parameters

offset
Int32

The current cursor offset in the layout text.

Returns

The offset reached by a leftward cursor move, or the input offset when no move is possible.

Attributes

Remarks

Android reference for android.text.Layout.getOffsetToLeftOf.

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