Layout.GetLineAscent(Int32) Method

Definition

Get the ascent of the text on the specified line.

[Android.Runtime.Register("getLineAscent", "(I)I", "")]
public int GetLineAscent (int line);
[<Android.Runtime.Register("getLineAscent", "(I)I", "")>]
member this.GetLineAscent : int -> int

Parameters

line
Int32

Returns

Attributes

Remarks

Get the ascent of the text on the specified line. The return value is negative to match the Paint.ascent() convention.

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