Language

Selection.SetSelection Method

Definition

Overloads

Name Description
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

The text in which to place the cursor.

index
Int32

The cursor offset, used for both selection endpoints.

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

The text whose selection markers are updated.

start
Int32

The selection anchor offset.

stop
Int32

The active selection-edge offset.

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