다음을 통해 공유


Selection.SetSelection Method

Definition

Overloads

SetSelection(ISpannable, Int32)

Move the cursor to offset index.

SetSelection(ISpannable, Int32, Int32)

Set the selection anchor to start and the selection edge to stop.

SetSelection(ISpannable, Int32)

Move the cursor to offset 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

Parameters

text
ISpannable
index
Int32
Attributes

Remarks

Move the cursor to offset index.

Java documentation for android.text.Selection.setSelection(android.text.Spannable, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetSelection(ISpannable, Int32, Int32)

Set the selection anchor to start and the selection edge to 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

Parameters

text
ISpannable
start
Int32
stop
Int32
Attributes

Remarks

Set the selection anchor to start and the selection edge to stop.

Java documentation for android.text.Selection.setSelection(android.text.Spannable, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to