String.LastIndexOf String.LastIndexOf Method

Definition

Overloads

LastIndexOf(Int32) LastIndexOf(Int32)

Returns the last index of the code point c, or -1.

LastIndexOf(String) LastIndexOf(String)

Returns the index of the start of the last match for the given string in this string, or -1.

LastIndexOf(Int32, Int32) LastIndexOf(Int32, Int32)

Returns the last index of the code point c, or -1.

LastIndexOf(String, Int32) LastIndexOf(String, Int32)

Returns the index of the start of the previous match for the given string in this string, or -1.

LastIndexOf(Int32) LastIndexOf(Int32)

Returns the last index of the code point c, or -1.

[Android.Runtime.Register("lastIndexOf", "(I)I", "")]
public int LastIndexOf (int ch);
member this.LastIndexOf : int -> int

Parameters

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.

LastIndexOf(String) LastIndexOf(String)

Returns the index of the start of the last match for the given string in this string, or -1.

[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;)I", "")]
public int LastIndexOf (string str);
member this.LastIndexOf : string -> int

Parameters

Returns

Exceptions

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.

LastIndexOf(Int32, Int32) LastIndexOf(Int32, Int32)

Returns the last index of the code point c, or -1.

[Android.Runtime.Register("lastIndexOf", "(II)I", "")]
public int LastIndexOf (int ch, int fromIndex);
member this.LastIndexOf : int * int -> int

Parameters

fromIndex
Int32 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.

LastIndexOf(String, Int32) LastIndexOf(String, Int32)

Returns the index of the start of the previous match for the given string in this string, or -1.

[Android.Runtime.Register("lastIndexOf", "(Ljava/lang/String;I)I", "")]
public int LastIndexOf (string str, int fromIndex);
member this.LastIndexOf : string * int -> int

Parameters

fromIndex
Int32 Int32

Returns

Exceptions

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