Documents for PDF, .NET Edition Documentation
FindIndex(Int32,StructPredicate<T>) Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > ReadOnlyStructList<T> Class > FindIndex Method : FindIndex(Int32,StructPredicate<T>) Method
The zero-based starting index of the search.
The GrapeCity.Documents.Common.StructPredicate`1 delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ReadOnlyStructList<T> that extends from the specified index to the last element.
Syntax
'Declaration
 
Public Overloads Function FindIndex( _
   ByVal startIndex As System.Integer, _
   ByVal match As GrapeCity.Documents.Common.StructPredicate(Of T) _
) As System.Integer
public System.int FindIndex( 
   System.int startIndex,
   GrapeCity.Documents.Common.StructPredicate<T> match
)

Parameters

startIndex
The zero-based starting index of the search.
match
The GrapeCity.Documents.Common.StructPredicate`1 delegate that defines the conditions of the element to search for.

Return Value

The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, –1.
See Also

Reference

ReadOnlyStructList<T> Class
ReadOnlyStructList<T> Members
Overload List