語言

Paint.UnderlinePosition 屬性

定義

回傳從底線頂端到基線的距離(以像素為單位)。

public virtual float UnderlinePosition { [Android.Runtime.Register("getUnderlinePosition", "()F", "GetGetUnderlinePositionHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getUnderlinePosition", "()F", "GetGetUnderlinePositionHandler", ApiSince=29)>]
member this.UnderlinePosition : single

屬性值

底線在像素中的位置

屬性

備註

回傳從底線頂端到基線的距離(以像素為單位)。

對於低於基準線的局面,結果為正值。 此方法回傳時,底線應與位元是否 #UNDERLINE_TEXT_FLAG 設定無關地繪製。

Java 文件 android.graphics.Paint.getUnderlinePosition()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於