Compartir a través de


Layout.GetLineForVertical(Int32) Method

Definition

Get the line number corresponding to the specified vertical position.

[Android.Runtime.Register("getLineForVertical", "(I)I", "GetGetLineForVertical_IHandler")]
public virtual int GetLineForVertical (int vertical);
[<Android.Runtime.Register("getLineForVertical", "(I)I", "GetGetLineForVertical_IHandler")>]
abstract member GetLineForVertical : int -> int
override this.GetLineForVertical : int -> int

Parameters

vertical
Int32

Returns

Attributes

Remarks

Get the line number corresponding to the specified vertical position. If you ask for a position above 0, you get 0; if you ask for a position below the bottom of the text, you get the last line.

Java documentation for android.text.Layout.getLineForVertical(int).

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