AvalonEdit
IndexOf Method (searchText, startIndex, count, comparisonType)
NamespacesICSharpCode.AvalonEdit.DocumentITextSourceIndexOf(String, Int32, Int32, StringComparison)
Gets the index of the first occurrence of the specified search text in this text source.
Declaration Syntax
C#Visual BasicVisual C++
int IndexOf(
	string searchText,
	int startIndex,
	int count,
	StringComparison comparisonType
)
Function IndexOf ( _
	searchText As String, _
	startIndex As Integer, _
	count As Integer, _
	comparisonType As StringComparison _
) As Integer
int IndexOf(
	String^ searchText, 
	int startIndex, 
	int count, 
	StringComparison comparisonType
)
Parameters
searchText (String)
The search text
startIndex (Int32)
Start index of the area to search.
count (Int32)
Length of the area to search.
comparisonType (StringComparison)
String comparison to use.
Return Value
The first index where the search term was found; or -1 if no occurrence was found.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238