Language

StaticLayout.GetLineStart(Int32) Method

Definition

Return the text offset of the beginning of the specified line ( 0…getLineCount()).

[Android.Runtime.Register("getLineStart", "(I)I", "GetGetLineStart_IHandler")]
public override int GetLineStart(int line);
[<Android.Runtime.Register("getLineStart", "(I)I", "GetGetLineStart_IHandler")>]
override this.GetLineStart : int -> int

Parameters

line
Int32

The zero-based line index, or the line count to request the text end offset.

Returns

The line's first character offset, or the laid-out range's end offset for the line-count sentinel.

Attributes

Remarks

Return the text offset of the beginning of the specified line ( 0…getLineCount()). If the specified line is equal to the line count, returns the length of the text.

Android reference for android.text.StaticLayout.getLineStart.

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