StringBuilderExtensionsIndexOf(StringBuilder, String, Int32, StringComparison) Method
Searches for the specified string in the source StringBuilder,
starting from the specified index,
and returns the zero-based index position of the first occurence.
Namespace: DevCase.Extensions.StringBuilderExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int IndexOf(
this StringBuilder sb,
string value,
int startIndex,
StringComparison stringComparison
)
<ExtensionAttribute>
Public Shared Function IndexOf (
sb As StringBuilder,
value As String,
startIndex As Integer,
stringComparison As StringComparison
) As Integer
Dim sb As StringBuilder
Dim value As String
Dim startIndex As Integer
Dim stringComparison As StringComparison
Dim returnValue As Integer
returnValue = sb.IndexOf(value, startIndex,
stringComparison)
public:
[ExtensionAttribute]
static int IndexOf(
StringBuilder^ sb,
String^ value,
int startIndex,
StringComparison stringComparison
)
[<ExtensionAttribute>]
static member IndexOf :
sb : StringBuilder *
value : string *
startIndex : int *
stringComparison : StringComparison -> int
No code example is currently available or this language may not be supported.
- sb StringBuilder
-
The source StringBuilder.
- value String
-
The string to find.
- startIndex Int32
-
The starting position of the search.
- stringComparison StringComparison
-
The string comparison to use for the search.
Int32
The zero-based index position of the specified string if found; otherwise, -1.
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).