StringUtilities..::..IndexOf Method (StringBuilder, String, StringComparison)
Returns the index of the first occurrence of a substring in the StringBuilder, using the specified StringComparison, or -1 if not found.
Namespace:
Tortuga.AnchorAssembly: Tortuga.Anchor (in Tortuga.Anchor.dll)
Syntax
public static int IndexOf( this StringBuilder stringBuilder, string value, StringComparison comparisonType )
<ExtensionAttribute> _ Public Shared Function IndexOf ( _ stringBuilder As StringBuilder, _ value As String, _ comparisonType As StringComparison _ ) As Integer
Parameters
- stringBuilder
- Type: StringBuilder
The StringBuilder to search.
- value
- Type: String
The substring to seek.
- comparisonType
- Type: StringComparison
The StringComparison option to use.

