StringBuilder.IndexOf 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
IndexOf(String, Int32) |
Searches for the index of the specified character. |
IndexOf(String) |
Searches for the first index of the specified character. |
IndexOf(String, Int32)
Searches for the index of the specified character.
[Android.Runtime.Register("indexOf", "(Ljava/lang/String;I)I", "")]
public override int IndexOf (string str, int fromIndex);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/String;I)I", "")>]
override this.IndexOf : string * int -> int
Parameters
- str
- String
- fromIndex
- 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.
See also
- <xref:Java.Lang.StringBuilder.LastIndexOf(System.String%2c+System.Int32)>
Applies to
IndexOf(String)
Searches for the first index of the specified character.
[Android.Runtime.Register("indexOf", "(Ljava/lang/String;)I", "")]
public override int IndexOf (string str);
[<Android.Runtime.Register("indexOf", "(Ljava/lang/String;)I", "")>]
override this.IndexOf : string -> int
Parameters
- str
- String
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.