ooodev.adapter.container.index_access_partial module

class ooodev.adapter.container.index_access_partial.IndexAccessPartial(component, interface=com.sun.star.container.XIndexAccess)[source]

Bases: Generic[T], ElementAccessPartial

Partial Class for XIndexAccess.

__init__(component, interface=com.sun.star.container.XIndexAccess)[source]

Constructor

Parameters:
  • component (XIndexAccess) – UNO Component that implements com.sun.star.container.XIndexAccess interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XIndexAccess.

Return type:

None

get_by_index(idx)[source]

Gets the element at the specified index.

Parameters:

idx (int) – The Zero-based index of the element.

Returns:

The element at the specified index.

Return type:

Any

get_count()[source]

Gets the number of elements contained in the container.

Returns:

The number of elements.

Return type:

int

ooodev.adapter.container.index_access_partial.T = TypeVar(T)

Type:    TypeVar

Invariant TypeVar.