EditText.SetSelection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SetSelection(Int32) |
方便。 |
| SetSelection(Int32, Int32) |
方便。 |
SetSelection(Int32)
方便。Selection#setSelection(Spannable, int)
[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public virtual void SetSelection(int index);
[<Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")>]
abstract member SetSelection : int -> unit
override this.SetSelection : int -> unit
参数
- index
- Int32
- 属性
注解
方便。Selection#setSelection(Spannable, int)
Java文档android.widget.EditText.setSelection(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SetSelection(Int32, Int32)
方便。Selection#setSelection(Spannable, int, int)
[Android.Runtime.Register("setSelection", "(II)V", "GetSetSelection_IIHandler")]
public virtual void SetSelection(int start, int stop);
[<Android.Runtime.Register("setSelection", "(II)V", "GetSetSelection_IIHandler")>]
abstract member SetSelection : int * int -> unit
override this.SetSelection : int * int -> unit
参数
- start
- Int32
- stop
- Int32
- 属性
注解
方便。Selection#setSelection(Spannable, int, int)
Java文档android.widget.EditText.setSelection(int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。