index_of method

index_of

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

Returns

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

def index_of(self, item, index):
    ...
ParameterTypeDescription
itemSparklineGroupThe object to locate in the array list. The value can be null.
indexintThe zero-based starting index of the search. 0 (zero) is valid in an empty list.

index_of

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

Returns

The zero-based index of the first occurrence of value within the range of elements in the array list that starts at startIndex and contains count number of elements, if found; otherwise, -1.

def index_of(self, item, index, count):
    ...
ParameterTypeDescription
itemSparklineGroupThe object to locate in the array list. The value can be null.
indexintThe zero-based starting index of the search. 0 (zero) is valid in an empty list.
countintThe number of elements in the section to search.

See Also