Paint.GetFontMetrics Method

Definition

Overloads

Name Description
GetFontMetrics(Paint+FontMetrics)

Allocates a new FontMetrics object, and then calls getFontMetrics(fm) with it, returning the object.

GetFontMetrics()

Return the font's recommended interline spacing, given the Paint's settings for typeface, textSize, etc. If metrics is not null, return the fontmetric values in it.

GetFontMetrics(Paint+FontMetrics)

Allocates a new FontMetrics object, and then calls getFontMetrics(fm) with it, returning the object.

[Android.Runtime.Register("getFontMetrics", "(Landroid/graphics/Paint$FontMetrics;)F", "GetGetFontMetrics_Landroid_graphics_Paint_FontMetrics_Handler")]
public virtual float GetFontMetrics(Android.Graphics.Paint.FontMetrics? metrics);
[<Android.Runtime.Register("getFontMetrics", "(Landroid/graphics/Paint$FontMetrics;)F", "GetGetFontMetrics_Landroid_graphics_Paint_FontMetrics_Handler")>]
abstract member GetFontMetrics : Android.Graphics.Paint.FontMetrics -> single
override this.GetFontMetrics : Android.Graphics.Paint.FontMetrics -> single

Parameters

metrics
Paint.FontMetrics

If this object is not null, its fields are filled with the appropriate values given the paint's text attributes.

Returns

the font's recommended interline spacing.

Attributes

Remarks

Android reference for android.graphics.Paint.getFontMetrics.

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

GetFontMetrics()

Return the font's recommended interline spacing, given the Paint's settings for typeface, textSize, etc. If metrics is not null, return the fontmetric values in it.

[Android.Runtime.Register("getFontMetrics", "()Landroid/graphics/Paint$FontMetrics;", "GetGetFontMetricsHandler")]
public virtual Android.Graphics.Paint.FontMetrics? GetFontMetrics();
[<Android.Runtime.Register("getFontMetrics", "()Landroid/graphics/Paint$FontMetrics;", "GetGetFontMetricsHandler")>]
abstract member GetFontMetrics : unit -> Android.Graphics.Paint.FontMetrics
override this.GetFontMetrics : unit -> Android.Graphics.Paint.FontMetrics

Returns

Attributes

Remarks

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

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