AvalonEdit
LastIndexOf Method (searchText, startIndex, count, comparisonType)
NamespacesICSharpCode.AvalonEdit.DocumentITextSourceLastIndexOf(String, Int32, Int32, StringComparison)
Gets the index of the last occurrence of the specified search text in this text source.
Declaration Syntax
C#Visual BasicVisual C++
int LastIndexOf(
	string searchText,
	int startIndex,
	int count,
	StringComparison comparisonType
)
Function LastIndexOf ( _
	searchText As String, _
	startIndex As Integer, _
	count As Integer, _
	comparisonType As StringComparison _
) As Integer
int LastIndexOf(
	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 last index where the search term was found; or -1 if no occurrence was found.
Remarks
The search proceeds backwards from (startIndex+count) to startIndex. This is different than the meaning of the parameters on string.LastIndexOf!

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