Gets the index of the string specified (Invariant culture, Ignore case).

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static int IndexOf(
	this StringBuilder sb,
	string s,
	int startIndex
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function IndexOf ( 
	sb As StringBuilder,
	s As String,
	startIndex As Integer
) As Integer
Visual C++
public:
[ExtensionAttribute]
static int IndexOf(
	StringBuilder^ sb, 
	String^ s, 
	int startIndex
)
F#
static member IndexOf : 
        sb : StringBuilder * 
        s : string * 
        startIndex : int -> int 

Parameters

sb
Type: System.Text..::..StringBuilder
String builder instance
s
Type: System..::..String
String to search for
startIndex
Type: System..::..Int32
The zero-based starting position of this instance.

Return Value

Type: Int32
Index of the string

Usage Note

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).

See Also