ooodev.adapter.table.auto_formattable_partial module

class ooodev.adapter.table.auto_formattable_partial.AutoFormattablePartial(component, interface=com.sun.star.table.XAutoFormattable)[source]

Bases: object

Partial Class for XAutoFormattable.

Parameters:
  • component (XAutoFormattable) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.table.XAutoFormattable)[source]

Constructor

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

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

Return type:

None

auto_format(name)[source]

Applies an AutoFormat to the cell range of the current context.

Parameters:

name (str) – The name of the AutoFormat to be applied.

Raises:

com.sun.star.lang.IllegalArgumentExceptionIllegalArgumentException

Return type:

None