AvalonEdit
IndexOf Method (searchText, startIndex, count, comparisonType)
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentIndexOf(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++
public int IndexOf(
	string searchText,
	int startIndex,
	int count,
	StringComparison comparisonType
)
Public Function IndexOf ( _
	searchText As String, _
	startIndex As Integer, _
	count As Integer, _
	comparisonType As StringComparison _
) As Integer
public:
virtual int IndexOf(
	String^ searchText, 
	int startIndex, 
	int count, 
	StringComparison comparisonType
) sealed
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