Android Guides | Samples

Java.Lang.String.IndexOf Method

Returns the next index of the given code point, or -1.

Syntax

[Android.Runtime.Register("indexOf", "(II)I", "")]
public Int32 IndexOf (Int32 c, Int32 start)

Parameters

c
the character to find.
start
the starting offset.

Remarks

Returns the next index of the given code point, or -1. The search starts at the given offset and moves towards the end of this string.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1