Condividi tramite


Canvas.DrawTextOnPath Method

Definition

Overloads

DrawTextOnPath(String, Path, Single, Single, Paint)

Draw the text, with origin at (x,y), using the specified paint, along the specified path.

DrawTextOnPath(Char[], Int32, Int32, Path, Single, Single, Paint)

Draw the text, with origin at (x,y), using the specified paint, along the specified path.

DrawTextOnPath(String, Path, Single, Single, Paint)

Draw the text, with origin at (x,y), using the specified paint, along the specified path.

[Android.Runtime.Register("drawTextOnPath", "(Ljava/lang/String;Landroid/graphics/Path;FFLandroid/graphics/Paint;)V", "GetDrawTextOnPath_Ljava_lang_String_Landroid_graphics_Path_FFLandroid_graphics_Paint_Handler")]
public virtual void DrawTextOnPath (string text, Android.Graphics.Path path, float hOffset, float vOffset, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawTextOnPath", "(Ljava/lang/String;Landroid/graphics/Path;FFLandroid/graphics/Paint;)V", "GetDrawTextOnPath_Ljava_lang_String_Landroid_graphics_Path_FFLandroid_graphics_Paint_Handler")>]
abstract member DrawTextOnPath : string * Android.Graphics.Path * single * single * Android.Graphics.Paint -> unit
override this.DrawTextOnPath : string * Android.Graphics.Path * single * single * Android.Graphics.Paint -> unit

Parameters

text
String

The text to be drawn

path
Path

The path the text should follow for its baseline

hOffset
Single

The distance along the path to add to the text's starting position

vOffset
Single

The distance above(-) or below(+) the path to position the text

paint
Paint

The paint used for the text (e.g. color, size, style)

Attributes

Remarks

Draw the text, with origin at (x,y), using the specified paint, along the specified path. The paint's Align setting determines where along the path to start the text.

Java documentation for android.graphics.Canvas.drawTextOnPath(java.lang.String, android.graphics.Path, float, float, android.graphics.Paint).

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

DrawTextOnPath(Char[], Int32, Int32, Path, Single, Single, Paint)

Draw the text, with origin at (x,y), using the specified paint, along the specified path.

[Android.Runtime.Register("drawTextOnPath", "([CIILandroid/graphics/Path;FFLandroid/graphics/Paint;)V", "GetDrawTextOnPath_arrayCIILandroid_graphics_Path_FFLandroid_graphics_Paint_Handler")]
public virtual void DrawTextOnPath (char[] text, int index, int count, Android.Graphics.Path path, float hOffset, float vOffset, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawTextOnPath", "([CIILandroid/graphics/Path;FFLandroid/graphics/Paint;)V", "GetDrawTextOnPath_arrayCIILandroid_graphics_Path_FFLandroid_graphics_Paint_Handler")>]
abstract member DrawTextOnPath : char[] * int * int * Android.Graphics.Path * single * single * Android.Graphics.Paint -> unit
override this.DrawTextOnPath : char[] * int * int * Android.Graphics.Path * single * single * Android.Graphics.Paint -> unit

Parameters

text
Char[]

The text to be drawn

index
Int32

The starting index within the text to be drawn

count
Int32

Starting from index, the number of characters to draw

path
Path

The path the text should follow for its baseline

hOffset
Single

The distance along the path to add to the text's starting position

vOffset
Single

The distance above(-) or below(+) the path to position the text

paint
Paint

The paint used for the text (e.g. color, size, style)

Attributes

Remarks

Draw the text, with origin at (x,y), using the specified paint, along the specified path. The paint's Align setting determines where along the path to start the text.

Java documentation for android.graphics.Canvas.drawTextOnPath(char[], int, int, android.graphics.Path, float, float, android.graphics.Paint).

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