AvalonEdit
LastIndexOf Method (c, startIndex, count)
NamespacesICSharpCode.AvalonEdit.DocumentITextSourceLastIndexOf(Char, Int32, Int32)
Gets the index of the last occurrence of the specified character in this text source.
Declaration Syntax
C#Visual BasicVisual C++
int LastIndexOf(
	char c,
	int startIndex,
	int count
)
Function LastIndexOf ( _
	c As Char, _
	startIndex As Integer, _
	count As Integer _
) As Integer
int LastIndexOf(
	wchar_t c, 
	int startIndex, 
	int count
)
Parameters
c (Char)
The search character
startIndex (Int32)
Start index of the area to search.
count (Int32)
Length of the area to search.
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