ooodev.adapter.container.element_index_partial module

class ooodev.adapter.container.element_index_partial.ElementIndexPartial(component)[source]

Bases: object

Adds methods for getting the element index by name.

Parameters:

component (NameIndexT) –

__init__(component)[source]
Parameters:

component (object) –

get_index_by_name(name)[source]

Gets the element index by name.

Parameters:

name (str) – The name of the element.

Returns:

The index of the element if found; Otherwise -1.

Return type:

int