Paint.GetTextRunCursor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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 和偏移量相对于文本的开头。 上下文是游标移动的整形上下文,通常是将游标括在移动方向的指标范围的边界。
如果 cursorOpt 是 #CURSOR_AT 且偏移量不是有效的游标位置,则返回 -1。 否则,在 contextStart 之前或 contextStart + contextLength 之后,该值永远不会返回值。
Java文档android.graphics.Paint.getTextRunCursor(char[], int, int, boolean, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。