Selection.SetSelection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetSelection(ISpannable, Int32) |
Move the cursor to offset |
SetSelection(ISpannable, Int32, Int32) |
Set the selection anchor to |
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.