last_index_of method

last_index_of

Searches for the specified object and returns the zero-based index of the last occurrence within the entire array list.

Returns

The zero-based index of the last occurrence of value within the entire the array list, if found; otherwise, -1.

def last_index_of(self, item):
    ...
ParameterTypeDescription
itemFontSettingThe object to locate in the array list. The value can be null.

last_index_of

Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the array list that extends from the first element to the specified index.

Returns

The zero-based index of the last occurrence of value within the range of elements in the array list that extends from the first element to startIndex, if found; otherwise, -1.

def last_index_of(self, item, index):
    ...
ParameterTypeDescription
itemFontSettingThe object to locate in the array list. The value can be null.
indexintThe zero-based starting index of the backward search.

last_index_of

Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the array list that contains the specified number of elements and ends at the specified index.

Returns

The zero-based index of the last occurrence of value within the range of elements in the System.Collections. Array list that contains count number of elements and ends at startIndex, if found; otherwise, -1.

def last_index_of(self, item, index, count):
    ...
ParameterTypeDescription
itemFontSettingThe object to locate in the array list. The value can be null.
indexintThe zero-based starting index of the backward search.
countintThe number of elements in the section to search.

See Also