共用方式為


Paint.GetFontMetricsInt Method

Definition

Overloads

GetFontMetricsInt()

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

GetFontMetricsInt(Paint+FontMetricsInt)

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

GetFontMetricsInt(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)
GetFontMetricsInt(Char[], Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)
GetFontMetricsInt(String, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

GetFontMetricsInt()

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

[Android.Runtime.Register("getFontMetricsInt", "()Landroid/graphics/Paint$FontMetricsInt;", "GetGetFontMetricsIntHandler")]
public virtual Android.Graphics.Paint.FontMetricsInt? GetFontMetricsInt ();
[<Android.Runtime.Register("getFontMetricsInt", "()Landroid/graphics/Paint$FontMetricsInt;", "GetGetFontMetricsIntHandler")>]
abstract member GetFontMetricsInt : unit -> Android.Graphics.Paint.FontMetricsInt
override this.GetFontMetricsInt : unit -> Android.Graphics.Paint.FontMetricsInt

Returns

the font's interline spacing.

Attributes

Remarks

Java documentation for android.graphics.Paint.getFontMetricsInt(android.graphics.FontMetricsInt).

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

GetFontMetricsInt(Paint+FontMetricsInt)

Return the font's interline spacing, given the Paint's settings for typeface, textSize, etc.

[Android.Runtime.Register("getFontMetricsInt", "(Landroid/graphics/Paint$FontMetricsInt;)I", "GetGetFontMetricsInt_Landroid_graphics_Paint_FontMetricsInt_Handler")]
public virtual int GetFontMetricsInt (Android.Graphics.Paint.FontMetricsInt? fmi);
[<Android.Runtime.Register("getFontMetricsInt", "(Landroid/graphics/Paint$FontMetricsInt;)I", "GetGetFontMetricsInt_Landroid_graphics_Paint_FontMetricsInt_Handler")>]
abstract member GetFontMetricsInt : Android.Graphics.Paint.FontMetricsInt -> int
override this.GetFontMetricsInt : Android.Graphics.Paint.FontMetricsInt -> int

Parameters

Returns

the font's interline spacing.

Attributes

Remarks

Java documentation for android.graphics.Paint.getFontMetricsInt(android.graphics.FontMetricsInt).

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

GetFontMetricsInt(ICharSequence, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

[Android.Runtime.Register("getFontMetricsInt", "(Ljava/lang/CharSequence;IIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_Ljava_lang_CharSequence_IIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)]
public virtual void GetFontMetricsInt (Java.Lang.ICharSequence text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
[<Android.Runtime.Register("getFontMetricsInt", "(Ljava/lang/CharSequence;IIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_Ljava_lang_CharSequence_IIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)>]
abstract member GetFontMetricsInt : Java.Lang.ICharSequence * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit
override this.GetFontMetricsInt : Java.Lang.ICharSequence * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

start
Int32
count
Int32
contextStart
Int32
contextCount
Int32
isRtl
Boolean
Attributes

Applies to

GetFontMetricsInt(Char[], Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

[Android.Runtime.Register("getFontMetricsInt", "([CIIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_arrayCIIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)]
public virtual void GetFontMetricsInt (char[] text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
[<Android.Runtime.Register("getFontMetricsInt", "([CIIIIZLandroid/graphics/Paint$FontMetricsInt;)V", "GetGetFontMetricsInt_arrayCIIIIZLandroid_graphics_Paint_FontMetricsInt_Handler", ApiSince=33)>]
abstract member GetFontMetricsInt : char[] * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit
override this.GetFontMetricsInt : char[] * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
Char[]
start
Int32
count
Int32
contextStart
Int32
contextCount
Int32
isRtl
Boolean
Attributes

Applies to

GetFontMetricsInt(String, Int32, Int32, Int32, Int32, Boolean, Paint+FontMetricsInt)

public void GetFontMetricsInt (string text, int start, int count, int contextStart, int contextCount, bool isRtl, Android.Graphics.Paint.FontMetricsInt outMetrics);
member this.GetFontMetricsInt : string * int * int * int * int * bool * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
String
start
Int32
count
Int32
contextStart
Int32
contextCount
Int32
isRtl
Boolean

Applies to