共用方式為


Paint.GetFontMetrics Method

Definition

Overloads

GetFontMetrics()

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

GetFontMetrics(Paint+FontMetrics)

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

GetFontMetrics()

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

[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

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

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