Język

DynamicDrawableSpan.Draw Method

Definition

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Ljava/lang/CharSequence;IIFIIILandroid/graphics/Paint;)V", "GetDraw_Landroid_graphics_Canvas_Ljava_lang_CharSequence_IIFIIILandroid_graphics_Paint_Handler")]
public override void Draw(Android.Graphics.Canvas canvas, Java.Lang.ICharSequence? text, int start, int end, float x, int top, int y, int bottom, Android.Graphics.Paint paint);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Ljava/lang/CharSequence;IIFIIILandroid/graphics/Paint;)V", "GetDraw_Landroid_graphics_Canvas_Ljava_lang_CharSequence_IIFIIILandroid_graphics_Paint_Handler")>]
override this.Draw : Android.Graphics.Canvas * Java.Lang.ICharSequence * int * int * single * int * int * int * Android.Graphics.Paint -> unit

Parameters

canvas
Canvas
text
ICharSequence

Current text.

start
Int32

Value is 0 or greater

end
Int32

Value is 0 or greater

x
Single

Edge of the replacement closest to the leading margin.

top
Int32

Top of the line.

y
Int32
bottom
Int32

Bottom of the line.

paint
Paint
Attributes

Remarks

Draws the span into the canvas.

Android reference for android.text.style.DynamicDrawableSpan.draw.

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