Documents for Imaging .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Common Namespace / ReadOnlyStructList<T> Class / FindLastIndex Method / FindLastIndex(Int32,Int32,StructPredicate<T>) Method
The zero-based starting index of the backward search.
The number of elements in the section to search.
The GrapeCity.Documents.Common.StructPredicate`1 delegate that defines the conditions of the element to search for.

In This Topic
    FindLastIndex(Int32,Int32,StructPredicate<T>) Method
    In This Topic
    Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ReadOnlyStructList<T> that contains the specified number of elements and ends at the specified index.
    Syntax
    'Declaration
     
    Public Overloads Function FindLastIndex( _
       ByVal startIndex As System.Integer, _
       ByVal count As System.Integer, _
       ByVal match As GrapeCity.Documents.Common.StructPredicate(Of T) _
    ) As System.Integer
    public System.int FindLastIndex( 
       System.int startIndex,
       System.int count,
       GrapeCity.Documents.Common.StructPredicate<T> match
    )

    Parameters

    startIndex
    The zero-based starting index of the backward search.
    count
    The number of elements in the section to 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 last occurrence of an element that matches the conditions defined by match, if found; otherwise, –1.
    See Also