語言

EditText.SetSelection 方法

定義

多載

名稱 Description
SetSelection(Int32)

方便使用 Selection#setSelection(Spannable, int)

SetSelection(Int32, Int32)

方便使用 Selection#setSelection(Spannable, int, int)

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)

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

適用於

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

int

stop
Int32

int

屬性

備註

方便使用 Selection#setSelection(Spannable, int, int)

Java 文件 android.widget.EditText.setSelection(int, int)

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

適用於