Language

Layout.GetLineTop(Int32) Method

Definition

Return the vertical position of the top of the specified line (0…getLineCount()).

[Android.Runtime.Register("getLineTop", "(I)I", "GetGetLineTop_IHandler")]
public abstract int GetLineTop(int line);
[<Android.Runtime.Register("getLineTop", "(I)I", "GetGetLineTop_IHandler")>]
abstract member GetLineTop : int -> int

Parameters

line
Int32

The zero-based line index, or the line count to request the layout's bottom edge.

Returns

The line's top pixel position, or the last line's bottom for the line-count sentinel.

Attributes

Remarks

Return the vertical position of the top of the specified line (0&hellip;getLineCount()). If the specified line is equal to the line count, returns the bottom of the last line.

Java documentation for android.text.Layout.getLineTop(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