语言

TextView.LastBaselineToBottomHeight 属性

定义

返回最后一个文本基线与此 TextView 底部之间的距离。 - 或 - 更新 TextView 的底部填充, lastBaselineToBottomHeight 以便它是 TextView 底部与最后一行基线之间的距离。

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

属性值

int:最后一个基线到容器底部之间的距离(以像素为单位)。 此值的单位为像素。 值为 0 或更大

特性

注解

属性 getter 文档:

返回最后一个文本基线与此 TextView 底部之间的距离。

Java文档android.widget.TextView.getLastBaselineToBottomHeight()。

属性 setter 文档:

更新 TextView 的底部填充,以便 lastBaselineToBottomHeight 它是 TextView 底部与最后一行基线之间的距离。

<img src=“https://developer.android.com/reference/android/images/text/widget/first_last_baseline.png” /><figcaption>First 和 TextView 的最后一个基线指标。</figcaption>

请注意 ,如果 FontMetrics.bottom 或 FontMetrics.descent 已大于 lastBaselineToBottomHeight,则不更新底部填充。 此外,由于此函数设置底部填充,如果 TextView 的高度小于顶部填充、行高和底部填充的总和,则会剪裁文本的底部。

Java文档android.widget.TextView.setLastBaselineToBottomHeight(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于