TextView.GetLineBounds(Int32, Rect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the baseline for the specified line (0.
[Android.Runtime.Register("getLineBounds", "(ILandroid/graphics/Rect;)I", "GetGetLineBounds_ILandroid_graphics_Rect_Handler")]
public virtual int GetLineBounds (int line, Android.Graphics.Rect? bounds);
[<Android.Runtime.Register("getLineBounds", "(ILandroid/graphics/Rect;)I", "GetGetLineBounds_ILandroid_graphics_Rect_Handler")>]
abstract member GetLineBounds : int * Android.Graphics.Rect -> int
override this.GetLineBounds : int * Android.Graphics.Rect -> int
Parameters
- line
- Int32
which line to examine (0..getLineCount() - 1)
- bounds
- Rect
Optional. If not null, it returns the extent of the line
Returns
the Y-coordinate of the baseline
- Attributes
Remarks
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. If the internal Layout has not been built, return 0 and set bounds to (0, 0, 0, 0)
Java documentation for android.widget.TextView.getLineBounds(int, android.graphics.Rect)
.
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.