StringBuilderExtensionsIndexOf(StringBuilder, String, StringComparison) Method
Searches for the specified string in the source StringBuilder,
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,
StringComparison stringComparison
)
<ExtensionAttribute>
Public Shared Function IndexOf (
sb As StringBuilder,
value As String,
stringComparison As StringComparison
) As Integer
Dim sb As StringBuilder
Dim value As String
Dim stringComparison As StringComparison
Dim returnValue As Integer
returnValue = sb.IndexOf(value, stringComparison)
public:
[ExtensionAttribute]
static int IndexOf(
StringBuilder^ sb,
String^ value,
StringComparison stringComparison
)
[<ExtensionAttribute>]
static member IndexOf :
sb : StringBuilder *
value : string *
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.
- 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).