Paint.GetTextPath 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetTextPath(Char[], Int32, Int32, Single, Single, Path) |
回傳指定文本的路徑(大綱)。 |
| GetTextPath(String, Int32, Int32, Single, Single, Path) |
回傳指定文本的路徑(大綱)。 |
GetTextPath(Char[], Int32, Int32, Single, Single, Path)
回傳指定文本的路徑(大綱)。
[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
參數
- text
- Char[]
從
- index
- Int32
文字中第一個字元的索引
- count
- Int32
以索引開頭的字元數
- x
- Single
文本來源的 X 座標
- y
- Single
文本來源的Y座標
- path
- Path
接收描述文字資料的路徑。 必須由呼叫者分配
- 屬性
備註
回傳指定文本的路徑(大綱)。 注意:就像 Canvas.drawText 一樣,這會尊重 Paint 中的對齊設定。
Java 文件 android.graphics.Paint.getTextPath(char[], int, int, float, float, android.graphics.Path)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetTextPath(String, Int32, Int32, Single, Single, Path)
回傳指定文本的路徑(大綱)。
[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
參數
- text
- String
從
- start
- Int32
文本中的第一個字元
- end
- Int32
在文字最後一個字元後 1
- x
- Single
文本來源的 X 座標
- y
- Single
文本來源的Y座標
- path
- Path
接收描述文字資料的路徑。 必須由呼叫者分配
- 屬性
備註
回傳指定文本的路徑(大綱)。 注意:就像 Canvas.drawText 一樣,這會尊重 Paint 中的對齊設定。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。