StringBuilderExtensionsIndexOf(StringBuilder, Char, StringComparison) Method
Searches for the specified character 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,
char value,
StringComparison stringComparison
)
<ExtensionAttribute>
Public Shared Function IndexOf (
sb As StringBuilder,
value As Char,
stringComparison As StringComparison
) As Integer
Dim sb As StringBuilder
Dim value As Char
Dim stringComparison As StringComparison
Dim returnValue As Integer
returnValue = sb.IndexOf(value, stringComparison)
public:
[ExtensionAttribute]
static int IndexOf(
StringBuilder^ sb,
wchar_t value,
StringComparison stringComparison
)
[<ExtensionAttribute>]
static member IndexOf :
sb : StringBuilder *
value : char *
stringComparison : StringComparison -> int
No code example is currently available or this language may not be supported.
- sb StringBuilder
-
The source StringBuilder.
- value Char
-
The character to find.
- stringComparison StringComparison
-
The string comparison to use for the search.
Int32
The zero-based index position of the specified character 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).