ooodev.adapter.container.index_replace_partial module

class ooodev.adapter.container.index_replace_partial.IndexReplacePartial(component, interface=com.sun.star.container.XIndexReplace)[source]

Bases: IndexAccessPartial[T], Generic[T]

Partial Class for XIndexReplace.

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

Constructor

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

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

Return type:

None

replace_by_index(index, element)[source]

Replaces the element at the specified index with the given element.

Parameters:
  • index (int) – The index of the element that is to be replaced.

  • element (Any) – The replacement element.

Return type:

None

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

Type:    TypeVar

Invariant TypeVar.