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