Paint.GetTextPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetTextPath(Char[], Int32, Int32, Single, Single, Path) |
Return the path (outline) for the specified text. |
GetTextPath(String, Int32, Int32, Single, Single, Path) |
Return the path (outline) for the specified text. |
GetTextPath(Char[], Int32, Int32, Single, Single, Path)
Return the path (outline) for the specified text.
[Android.Runtime.Register("getTextPath", "([CIIFFLandroid/graphics/Path;)V", "GetGetTextPath_arrayCIIFFLandroid_graphics_Path_Handler")]
public virtual void GetTextPath (char[]? text, int index, int count, float x, float y, Android.Graphics.Path? path);
[<Android.Runtime.Register("getTextPath", "([CIIFFLandroid/graphics/Path;)V", "GetGetTextPath_arrayCIIFFLandroid_graphics_Path_Handler")>]
abstract member GetTextPath : char[] * int * int * single * single * Android.Graphics.Path -> unit
override this.GetTextPath : char[] * int * int * single * single * Android.Graphics.Path -> unit
Parameters
- text
- Char[]
the text to retrieve the path from
- index
- Int32
the index of the first character in text
- count
- Int32
the number of characters starting with index
- x
- Single
the x coordinate of the text's origin
- y
- Single
the y coordinate of the text's origin
- path
- Path
the path to receive the data describing the text. Must be allocated by the caller
- Attributes
Remarks
Return the path (outline) for the specified text. Note: just like Canvas.drawText, this will respect the Align setting in the 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
GetTextPath(String, Int32, Int32, Single, Single, Path)
Return the path (outline) for the specified text.
[Android.Runtime.Register("getTextPath", "(Ljava/lang/String;IIFFLandroid/graphics/Path;)V", "GetGetTextPath_Ljava_lang_String_IIFFLandroid_graphics_Path_Handler")]
public virtual void GetTextPath (string? text, int start, int end, float x, float y, Android.Graphics.Path? path);
[<Android.Runtime.Register("getTextPath", "(Ljava/lang/String;IIFFLandroid/graphics/Path;)V", "GetGetTextPath_Ljava_lang_String_IIFFLandroid_graphics_Path_Handler")>]
abstract member GetTextPath : string * int * int * single * single * Android.Graphics.Path -> unit
override this.GetTextPath : string * int * int * single * single * Android.Graphics.Path -> unit
Parameters
- text
- String
the text to retrieve the path from
- start
- Int32
the first character in the text
- end
- Int32
1 past the last character in the text
- x
- Single
the x coordinate of the text's origin
- y
- Single
the y coordinate of the text's origin
- path
- Path
the path to receive the data describing the text. Must be allocated by the caller
- Attributes
Remarks
Return the path (outline) for the specified text. Note: just like Canvas.drawText, this will respect the Align setting in the 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.