[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.ReadOnlyStructList-1.FindLastIndex

FindLastIndex Method

FindLastIndex(StructPredicate<T>)

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 entire ReadOnlyStructList<T>.

Declaration
public int FindLastIndex(StructPredicate<T> match)
Public Function FindLastIndex(match As StructPredicate(Of T)) As Integer
Parameters
Type Name Description
StructPredicate<T> match

The StructPredicate<T> delegate that defines the conditions of the element to search for.

Returns
Type Description
int

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

FindLastIndex(int, StructPredicate<T>)

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 extends from the first element to the specified index.

Declaration
public int FindLastIndex(int startIndex, StructPredicate<T> match)
Public Function FindLastIndex(startIndex As Integer, match As StructPredicate(Of T)) As Integer
Parameters
Type Name Description
int startIndex

The zero-based starting index of the backward search.

StructPredicate<T> match

The StructPredicate<T> delegate that defines the conditions of the element to search for.

Returns
Type Description
int

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

FindLastIndex(int, int, StructPredicate<T>)

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.

Declaration
public int FindLastIndex(int startIndex, int count, StructPredicate<T> match)
Public Function FindLastIndex(startIndex As Integer, count As Integer, match As StructPredicate(Of T)) As Integer
Parameters
Type Name Description
int startIndex

The zero-based starting index of the backward search.

int count

The number of elements in the section to search.

StructPredicate<T> match

The StructPredicate<T> delegate that defines the conditions of the element to search for.

Returns
Type Description
int

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