Partager via


ReplacementSpan.GetSize Method

Definition

Overloads

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

Returns the width of the span.

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

Returns the width of the span.

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

Returns the width of the span.

[Android.Runtime.Register("getSize", "(Landroid/graphics/Paint;Ljava/lang/CharSequence;IILandroid/graphics/Paint$FontMetricsInt;)I", "GetGetSize_Landroid_graphics_Paint_Ljava_lang_CharSequence_IILandroid_graphics_Paint_FontMetricsInt_Handler")]
public abstract int GetSize (Android.Graphics.Paint paint, Java.Lang.ICharSequence? text, int start, int end, Android.Graphics.Paint.FontMetricsInt? fm);
[<Android.Runtime.Register("getSize", "(Landroid/graphics/Paint;Ljava/lang/CharSequence;IILandroid/graphics/Paint$FontMetricsInt;)I", "GetGetSize_Landroid_graphics_Paint_Ljava_lang_CharSequence_IILandroid_graphics_Paint_FontMetricsInt_Handler")>]
abstract member GetSize : Android.Graphics.Paint * Java.Lang.ICharSequence * int * int * Android.Graphics.Paint.FontMetricsInt -> int

Parameters

paint
Paint

Paint instance.

text
ICharSequence

Current text.

start
Int32

Start character index for span.

end
Int32

End character index for span.

fm
Paint.FontMetricsInt

Font metrics, can be null.

Returns

Width of the span.

Attributes

Remarks

Java documentation for android.text.style.ReplacementSpan.getSize(android.graphics.Paint, java.lang.CharSequence, int, int, 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

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

Returns the width of the span.

public int GetSize (Android.Graphics.Paint paint, string? text, int start, int end, Android.Graphics.Paint.FontMetricsInt? fm);
member this.GetSize : Android.Graphics.Paint * string * int * int * Android.Graphics.Paint.FontMetricsInt -> int

Parameters

paint
Paint

Paint instance.

text
String

Current text.

start
Int32

Start character index for span.

end
Int32

End character index for span.

fm
Paint.FontMetricsInt

Font metrics, can be null.

Returns

Width of the span.

Remarks

Java documentation for android.text.style.ReplacementSpan.getSize(android.graphics.Paint, java.lang.CharSequence, int, int, 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