AvalonEdit
IndexOf Method (item, startIndex, count)
NamespacesICSharpCode.AvalonEdit.UtilsRope<(Of <(<'T>)>)>IndexOf(T, Int32, Int32)
Gets the index of the first occurrence the specified item.
Declaration Syntax
C#Visual BasicVisual C++
public int IndexOf(
	T item,
	int startIndex,
	int count
)
Public Function IndexOf ( _
	item As T, _
	startIndex As Integer, _
	count As Integer _
) As Integer
public:
int IndexOf(
	T item, 
	int startIndex, 
	int count
)
Parameters
item (T)
Item to search for.
startIndex (Int32)
Start index of the search.
count (Int32)
Length of the area to search.
Return Value
The first index where the item was found; or -1 if no occurrence was found.
Remarks
This method counts as a read access and may be called concurrently to other read accesses.

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