SurroundingText 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SurroundingText(ICharSequence, Int32, Int32, Int32) |
构造 函数。 |
| SurroundingText(String, Int32, Int32, Int32) |
SurroundingText(ICharSequence, Int32, Int32, Int32)
构造 函数。
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(Java.Lang.ICharSequence text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : Java.Lang.ICharSequence * int * int * int -> Android.Views.InputMethods.SurroundingText
参数
- text
- ICharSequence
周围的文本。
- selectionStart
- Int32
周围文本中所选内容开始的文本偏移量。 允许反向选择。
- selectionEnd
- Int32
周围文本中所选内容的末尾的文本偏移量。 允许反向选择。
- offset
- Int32
编辑器文本的开头和周围文本的开头之间的文本偏移量。 -1 指示偏移量未知。
- 属性
注解
构造 函数。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SurroundingText(String, Int32, Int32, Int32)
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(string text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : string * int * int * int -> Android.Views.InputMethods.SurroundingText
参数
- text
- String
- selectionStart
- Int32
- selectionEnd
- Int32
- offset
- Int32
- 属性