Share via


TextView.LastBaselineToBottomHeight Property

Definition

Returns the distance between the last text baseline and the bottom of this TextView. -or- Updates the bottom padding of the TextView so that lastBaselineToBottomHeight is the distance between the bottom of the TextView and the last line's baseline.

public virtual int LastBaselineToBottomHeight { [Android.Runtime.Register("getLastBaselineToBottomHeight", "()I", "GetGetLastBaselineToBottomHeightHandler", ApiSince=28)] get; [Android.Runtime.Register("setLastBaselineToBottomHeight", "(I)V", "GetSetLastBaselineToBottomHeight_IHandler", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getLastBaselineToBottomHeight", "()I", "GetGetLastBaselineToBottomHeightHandler", ApiSince=28)>]
[<set: Android.Runtime.Register("setLastBaselineToBottomHeight", "(I)V", "GetSetLastBaselineToBottomHeight_IHandler", ApiSince=28)>]
member this.LastBaselineToBottomHeight : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the distance between the last text baseline and the bottom of this TextView.

Java documentation for android.widget.TextView.getLastBaselineToBottomHeight().

Property setter documentation:

Updates the bottom padding of the TextView so that lastBaselineToBottomHeight is the distance between the bottom of the TextView and the last line's baseline.

<img src="https://developer.android.com/reference/android/images/text/widget/first_last_baseline.png" /> <figcaption>First and last baseline metrics for a TextView.</figcaption>

<strong>Note</strong> that if FontMetrics.bottom or FontMetrics.descent was already greater than lastBaselineToBottomHeight, the bottom padding is not updated. Moreover since this function sets the bottom padding, if the height of the TextView is less than the sum of top padding, line height and bottom padding, bottom of the text will be clipped.

Java documentation for android.widget.TextView.setLastBaselineToBottomHeight(int).

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