Share via


TextUtils.IndexOf Method

Definition

Overloads

IndexOf(String, String, Int32, Int32)
IndexOf(String, Char, Int32, Int32)
IndexOf(ICharSequence, Char, Int32, Int32)
IndexOf(String, String, Int32)
IndexOf(String, Char, Int32)
IndexOf(ICharSequence, ICharSequence, Int32, Int32)
IndexOf(ICharSequence, ICharSequence, Int32)
IndexOf(ICharSequence, ICharSequence)
IndexOf(ICharSequence, Char)
IndexOf(ICharSequence, Char, Int32)
IndexOf(String, String)
IndexOf(String, Char)

IndexOf(String, String, Int32, Int32)

public static int IndexOf (string? s, string? needle, int start, int end);
static member IndexOf : string * string * int * int -> int

Parameters

s
String
needle
String
start
Int32
end
Int32

Returns

Remarks

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

IndexOf(String, Char, Int32, Int32)

public static int IndexOf (string? s, char ch, int start, int end);
static member IndexOf : string * char * int * int -> int

Parameters

s
String
ch
Char
start
Int32
end
Int32

Returns

Remarks

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

IndexOf(ICharSequence, Char, Int32, Int32)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;CII)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, char ch, int start, int end);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;CII)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * char * int * int -> int

Parameters

ch
Char
start
Int32
end
Int32

Returns

Attributes

Remarks

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

IndexOf(String, String, Int32)

public static int IndexOf (string? s, string? needle, int start);
static member IndexOf : string * string * int -> int

Parameters

s
String
needle
String
start
Int32

Returns

Remarks

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

IndexOf(String, Char, Int32)

public static int IndexOf (string? s, char ch, int start);
static member IndexOf : string * char * int -> int

Parameters

s
String
ch
Char
start
Int32

Returns

Remarks

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

IndexOf(ICharSequence, ICharSequence, Int32, Int32)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;II)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, Java.Lang.ICharSequence? needle, int start, int end);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;II)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * Java.Lang.ICharSequence * int * int -> int

Parameters

needle
ICharSequence
start
Int32
end
Int32

Returns

Attributes

Remarks

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

IndexOf(ICharSequence, ICharSequence, Int32)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, Java.Lang.ICharSequence? needle, int start);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * Java.Lang.ICharSequence * int -> int

Parameters

needle
ICharSequence
start
Int32

Returns

Attributes

Remarks

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

IndexOf(ICharSequence, ICharSequence)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, Java.Lang.ICharSequence? needle);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> int

Parameters

needle
ICharSequence

Returns

Attributes

Remarks

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

IndexOf(ICharSequence, Char)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;C)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, char ch);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;C)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * char -> int

Parameters

ch
Char

Returns

Attributes

Remarks

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

IndexOf(ICharSequence, Char, Int32)

[Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;CI)I", "")]
public static int IndexOf (Java.Lang.ICharSequence? s, char ch, int start);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/CharSequence;CI)I", "")>]
static member IndexOf : Java.Lang.ICharSequence * char * int -> int

Parameters

ch
Char
start
Int32

Returns

Attributes

Remarks

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

IndexOf(String, String)

public static int IndexOf (string? s, string? needle);
static member IndexOf : string * string -> int

Parameters

s
String
needle
String

Returns

Remarks

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

IndexOf(String, Char)

public static int IndexOf (string? s, char ch);
static member IndexOf : string * char -> int

Parameters

s
String
ch
Char

Returns

Remarks

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