Paint.Ascent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the distance above (negative) the baseline (ascent) based on the current typeface and text size.
[Android.Runtime.Register("ascent", "()F", "GetAscentHandler")]
public virtual float Ascent ();
[<Android.Runtime.Register("ascent", "()F", "GetAscentHandler")>]
abstract member Ascent : unit -> single
override this.Ascent : unit -> single
Returns
the distance above (negative) the baseline (ascent) based on the current typeface and text size.
- Attributes
Remarks
Return the distance above (negative) the baseline (ascent) based on the current typeface and text size.
Note that this is the ascent of the main typeface, and actual text rendered may need a larger ascent because fallback fonts may get used in rendering the text.
Java documentation for android.graphics.Paint.ascent()
.
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.