TextView.GetLineBounds(Int32, Rect) TextView.GetLineBounds(Int32, Rect) Method

Definition

Return the baseline for the specified line (0...getLineCount() - 1) If bounds is not null, return the top, left, right, bottom extents of the specified line in it.

[Android.Runtime.Register("getLineBounds", "(ILandroid/graphics/Rect;)I", "GetGetLineBounds_ILandroid_graphics_Rect_Handler")]
public virtual int GetLineBounds (int line, Android.Graphics.Rect bounds);
abstract member GetLineBounds : int * Android.Graphics.Rect -> int
override this.GetLineBounds : int * Android.Graphics.Rect -> int

Parameters

line
Int32 Int32

which line to examine (0..getLineCount() - 1)

bounds
Rect Rect

Optional. If not null, it returns the extent of the line

Returns

Remarks

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