語言

Paint.GetTextRunCursor 方法

定義

多載

名稱 Description
GetTextRunCursor(Char[], Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

GetTextRunCursor(String, Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

GetTextRunCursor(ICharSequence, Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

GetTextRunCursor(Char[], Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

[Android.Runtime.Register("getTextRunCursor", "([CIIZII)I", "GetGetTextRunCursor_arrayCIIZIIHandler", ApiSince=29)]
public virtual int GetTextRunCursor(char[] text, int contextStart, int contextLength, bool isRtl, int offset, int cursorOpt);
[<Android.Runtime.Register("getTextRunCursor", "([CIIZII)I", "GetGetTextRunCursor_arrayCIIZIIHandler", ApiSince=29)>]
abstract member GetTextRunCursor : char[] * int * int * bool * int * int -> int
override this.GetTextRunCursor : char[] * int * int * bool * int * int -> int

參數

text
Char[]

文本

contextStart
Int32

背景的開始

contextLength
Int32

語境長度

isRtl
Boolean

若段落上下文為 RTL,則為 true;否則為 false

offset
Int32

游標位置

cursorOpt
Int32

如何移動游標

傳回

下一個位置的偏移量,或 -1

屬性

備註

回傳該行程中的下一個游標位置。

這避免將游標置於代理節點之間、形成合詞的字元之間、基底字元與合併標記之間,或是重新排序的叢集中。

ContextStart 和 offset 是相對於文字開頭的。 情境是游標移動的塑形情境,通常是包圍游標在移動方向上的度量跨度的邊界。

若 cursorOpt 為 #CURSOR_AT 且偏移量不是有效的游標位置,則回傳為 -1。 否則,這永遠不會回傳 contextStart 之前或 contextStart + contextLength 之後的值。

Java 文件 android.graphics.Paint.getTextRunCursor(char[], int, int, boolean, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetTextRunCursor(String, Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

public int GetTextRunCursor(string text, int contextStart, int contextEnd, bool isRtl, int offset, int cursorOpt);
member this.GetTextRunCursor : string * int * int * bool * int * int -> int

參數

text
String

文本

contextStart
Int32

背景的開始

contextEnd
Int32

語境結束

isRtl
Boolean

若段落上下文為 RTL,則為 true;否則為 false

offset
Int32

游標位置

cursorOpt
Int32

如何移動游標

傳回

下一個位置的偏移量,或 -1

備註

回傳該行程中的下一個游標位置。

這避免將游標置於代理節點之間、形成合詞的字元之間、基底字元與合併標記之間,或是重新排序的叢集中。

ContextStart、contextEnd 和 offset 是相對於文字開頭的。 情境是游標移動的塑形情境,通常是包圍游標在移動方向上的度量跨度的邊界。

若 cursorOpt 為 #CURSOR_AT 且偏移量不是有效的游標位置,則回傳為 -1。 否則,這永遠不會在 contextStart 之前或 contextEnd 之後回傳一個值。

Java 文件 android.graphics.Paint.getTextRunCursor(java.lang.CharSequence, int, int, boolean, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetTextRunCursor(ICharSequence, Int32, Int32, Boolean, Int32, Int32)

回傳該行程中的下一個游標位置。

[Android.Runtime.Register("getTextRunCursor", "(Ljava/lang/CharSequence;IIZII)I", "GetGetTextRunCursor_Ljava_lang_CharSequence_IIZIIHandler", ApiSince=29)]
public virtual int GetTextRunCursor(Java.Lang.ICharSequence text, int contextStart, int contextEnd, bool isRtl, int offset, int cursorOpt);
[<Android.Runtime.Register("getTextRunCursor", "(Ljava/lang/CharSequence;IIZII)I", "GetGetTextRunCursor_Ljava_lang_CharSequence_IIZIIHandler", ApiSince=29)>]
abstract member GetTextRunCursor : Java.Lang.ICharSequence * int * int * bool * int * int -> int
override this.GetTextRunCursor : Java.Lang.ICharSequence * int * int * bool * int * int -> int

參數

text
ICharSequence

文本

contextStart
Int32

背景的開始

contextEnd
Int32

語境結束

isRtl
Boolean

若段落上下文為 RTL,則為 true;否則為 false

offset
Int32

游標位置

cursorOpt
Int32

如何移動游標

傳回

下一個位置的偏移量,或 -1

屬性

備註

回傳該行程中的下一個游標位置。

這避免將游標置於代理節點之間、形成合詞的字元之間、基底字元與合併標記之間,或是重新排序的叢集中。

ContextStart、contextEnd 和 offset 是相對於文字開頭的。 情境是游標移動的塑形情境,通常是包圍游標在移動方向上的度量跨度的邊界。

若 cursorOpt 為 #CURSOR_AT 且偏移量不是有效的游標位置,則回傳為 -1。 否則,這永遠不會在 contextStart 之前或 contextEnd 之後回傳一個值。

Java 文件 android.graphics.Paint.getTextRunCursor(java.lang.CharSequence, int, int, boolean, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於