Condividi tramite


Paint.UnderlinePosition Property

Definition

Returns the distance from top of the underline to the baseline in pixels.

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

Property Value

the position of the underline in pixels

Attributes

Remarks

Returns the distance from top of the underline to the baseline in pixels.

The result is positive for positions that are below the baseline. This method returns where the underline should be drawn independent of if the #UNDERLINE_TEXT_FLAG bit is set.

Java documentation for android.graphics.Paint.getUnderlinePosition().

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