共用方式為


Layout.DrawText(Canvas) Method

Definition

Draw text part of this layout.

[Android.Runtime.Register("drawText", "(Landroid/graphics/Canvas;)V", "GetDrawText_Landroid_graphics_Canvas_Handler", ApiSince=34)]
public virtual void DrawText (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("drawText", "(Landroid/graphics/Canvas;)V", "GetDrawText_Landroid_graphics_Canvas_Handler", ApiSince=34)>]
abstract member DrawText : Android.Graphics.Canvas -> unit
override this.DrawText : Android.Graphics.Canvas -> unit

Parameters

canvas
Canvas

the canvas

Attributes

Remarks

Draw text part of this layout.

Different from #draw(Canvas, List, List, Path, Paint, int) API, this API only draws text part, not drawing highlights, selections, or backgrounds.

Java documentation for android.text.Layout.drawText(android.graphics.Canvas).

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