Language

BoringLayout.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 override int GetLineTop(int line);
[<Android.Runtime.Register("getLineTop", "(I)I", "GetGetLineTop_IHandler")>]
override this.GetLineTop : int -> int

Parameters

line
Int32

Zero for the text line, or one for the bottom-edge sentinel.

Returns

Zero for the line's top, or the layout height for the sentinel.

Attributes

Remarks

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

Android reference for android.text.BoringLayout.getLineTop.

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