Language

ILineHeightSpanWithDensity.ChooseHeight Method

Definition

[Android.Runtime.Register("chooseHeight", "(Ljava/lang/CharSequence;IIIILandroid/graphics/Paint$FontMetricsInt;Landroid/text/TextPaint;)V", "GetChooseHeight_Ljava_lang_CharSequence_IIIILandroid_graphics_Paint_FontMetricsInt_Landroid_text_TextPaint_Handler:Android.Text.Style.ILineHeightSpanWithDensityInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ChooseHeight(Java.Lang.ICharSequence? text, int start, int end, int spanstartv, int lineHeight, Android.Graphics.Paint.FontMetricsInt? fm, Android.Text.TextPaint? paint);
[<Android.Runtime.Register("chooseHeight", "(Ljava/lang/CharSequence;IIIILandroid/graphics/Paint$FontMetricsInt;Landroid/text/TextPaint;)V", "GetChooseHeight_Ljava_lang_CharSequence_IIIILandroid_graphics_Paint_FontMetricsInt_Landroid_text_TextPaint_Handler:Android.Text.Style.ILineHeightSpanWithDensityInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ChooseHeight : Java.Lang.ICharSequence * int * int * int * int * Android.Graphics.Paint.FontMetricsInt * Android.Text.TextPaint -> unit

Parameters

text
ICharSequence

the text

start
Int32

the start of the line

end
Int32

the end of the line

spanstartv
Int32

the start of the span

lineHeight
Int32

the line height

paint
TextPaint

the paint

Attributes

Remarks

Classes that implement this should define how the height is being calculated.

Android reference for android.text.style.LineHeightSpan.WithDensity.chooseHeight.

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