Language

DrawableMarginSpan.ChooseHeight Method

Definition

Overloads

Name Description
ChooseHeight(ICharSequence, Int32, Int32, Int32, Int32, Paint+FontMetricsInt)

Increases the last line's metrics when needed to fit the drawable's height.

ChooseHeight(String, Int32, Int32, Int32, Int32, Paint+FontMetricsInt)

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

ChooseHeight(ICharSequence, Int32, Int32, Int32, Int32, Paint+FontMetricsInt)

Increases the last line's metrics when needed to fit the drawable's height.

[Android.Runtime.Register("chooseHeight", "(Ljava/lang/CharSequence;IIIILandroid/graphics/Paint$FontMetricsInt;)V", "GetChooseHeight_Ljava_lang_CharSequence_IIIILandroid_graphics_Paint_FontMetricsInt_Handler")]
public virtual void ChooseHeight(Java.Lang.ICharSequence text, int start, int end, int istartv, int v, Android.Graphics.Paint.FontMetricsInt fm);
[<Android.Runtime.Register("chooseHeight", "(Ljava/lang/CharSequence;IIIILandroid/graphics/Paint$FontMetricsInt;)V", "GetChooseHeight_Ljava_lang_CharSequence_IIIILandroid_graphics_Paint_FontMetricsInt_Handler")>]
abstract member ChooseHeight : Java.Lang.ICharSequence * int * int * int * int * Android.Graphics.Paint.FontMetricsInt -> unit
override this.ChooseHeight : Java.Lang.ICharSequence * int * int * int * int * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
ICharSequence

The spanned text being laid out.

start
Int32

the start of the line

end
Int32

the end of the line

istartv
Int32

the start of the span

v
Int32

the line height

fm
Paint.FontMetricsInt

The font metrics to adjust to fit the drawable.

Implements

Attributes

Remarks

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

Android reference for android.text.style.DrawableMarginSpan.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

ChooseHeight(String, Int32, Int32, Int32, Int32, Paint+FontMetricsInt)

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

public void ChooseHeight(string text, int start, int end, int istartv, int v, Android.Graphics.Paint.FontMetricsInt fm);
member this.ChooseHeight : string * int * int * int * int * Android.Graphics.Paint.FontMetricsInt -> unit

Parameters

text
String

The text being laid out, supplied to the character-sequence overload.

start
Int32

the start of the line

end
Int32

the end of the line

istartv
Int32

the start of the span

v
Int32

the line height

fm
Paint.FontMetricsInt

The font metrics to adjust to fit the drawable.

Remarks

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

Android reference for android.text.style.DrawableMarginSpan.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