Selection.SetSelection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetSelection(ISpannable, Int32) |
將游標移至偏移 |
| SetSelection(ISpannable, Int32, Int32) |
將選取錨點設為 , |
SetSelection(ISpannable, Int32)
將游標移至偏移 index。
[Android.Runtime.Register("setSelection", "(Landroid/text/Spannable;I)V", "")]
public static void SetSelection(Android.Text.ISpannable? text, int index);
[<Android.Runtime.Register("setSelection", "(Landroid/text/Spannable;I)V", "")>]
static member SetSelection : Android.Text.ISpannable * int -> unit
參數
- text
- ISpannable
- index
- Int32
- 屬性
備註
將游標移至偏移 index。
Java 文件 android.text.Selection.setSelection(android.text.Spannable, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetSelection(ISpannable, Int32, Int32)
將選取錨點設為 , start 選擇邊設為 stop。
[Android.Runtime.Register("setSelection", "(Landroid/text/Spannable;II)V", "")]
public static void SetSelection(Android.Text.ISpannable? text, int start, int stop);
[<Android.Runtime.Register("setSelection", "(Landroid/text/Spannable;II)V", "")>]
static member SetSelection : Android.Text.ISpannable * int * int -> unit
參數
- text
- ISpannable
- start
- Int32
- stop
- Int32
- 屬性
備註
將選取錨點設為 , start 選擇邊設為 stop。
Java 文件 android.text.Selection.setSelection(android.text.Spannable, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。