Language

ILineHeightSpanWithDensityExtensions.ChooseHeight Method

Definition

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

public static void ChooseHeight(this Android.Text.Style.ILineHeightSpanWithDensity self, string? text, int start, int end, int spanstartv, int lineHeight, Android.Graphics.Paint.FontMetricsInt? fm, Android.Text.TextPaint? paint);
static member ChooseHeight : Android.Text.Style.ILineHeightSpanWithDensity * string * int * int * int * int * Android.Graphics.Paint.FontMetricsInt * Android.Text.TextPaint -> unit

Parameters

self
ILineHeightSpanWithDensity

The span on which to call the character-sequence overload.

text
String

the text

start
Int32

the start of the line

end
Int32

the end of the line

spanstartv
Int32

The vertical position associated with the start of the span, in pixels.

lineHeight
Int32

The vertical position of the current line, in pixels.

fm
Paint.FontMetricsInt

The font metrics to adjust for the line.

paint
TextPaint

the paint

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