index_of method

On this page

index_of

Returns the index of the specified relation within this collection.

def index_of(self, relation):
    ...
Parameter Type Description
relation DocumentTableRelation A relation to find.

Returns: int: The zero-based index of the specified relation, or -1 if the relation does not exist in this collection.

Aliases

These names call index_of too, limited to the overloads listed.

Alias Accepts
index_of_document_table_relation index_of_document_table_relation(relation)

See Also

On this page