다음을 통해 공유


TextView.GetLineBounds(Int32, Rect) 메서드

정의

지정한 줄의 기준선을 반환합니다(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

매개 변수

line
Int32

검사할 줄(0..getLineCount() - 1)

bounds
Rect

선택 사항. null이 아니면 줄의 익스텐트 값을 반환합니다.

반환

기준선의 Y 좌표

특성

설명

지정한 줄(0...getLineCount() - 1)에 대한 기준선을 반환합니다. 범위가 null이 아니면 지정된 줄의 위쪽, 왼쪽, 오른쪽, 아래쪽 익스텐트를 반환합니다. 내부 레이아웃이 빌드되지 않은 경우 0을 반환하고 경계를 (0, 0, 0, 0, 0)으로 설정합니다.

에 대한 android.widget.TextView.getLineBounds(int, android.graphics.Rect)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상