ooodev.format.inner.partial.write.table.write_table_properties_partial module

class ooodev.format.inner.partial.write.table.write_table_properties_partial.WriteTablePropertiesPartial(component)[source]

Bases: object

Partial class for Write Table Properties.

Parameters:

component (Any) –

__init__(component)[source]
Parameters:

component (Any) –

Return type:

None

style_table_props(*, width=None, left=None, right=None, above=None, below=None, align=None, relative=False)[source]

Style Write Table Properties.

Parameters:
  • width (TblAbsUnit, TblRelUnit, optional) – Specifies table Width.

  • left (TblAbsUnit, TblRelUnit, optional) – Specifies table Left.

  • right (TblAbsUnit, TblRelUnit, optional) – Specifies table Right.

  • above (TblAbsUnit, TblRelUnit, optional) – Specifies table spacing above.

  • below (TblAbsUnit, TblRelUnit, optional) – Specifies table spacing below.

  • align (TableAlignKind, optional) – Specifies table alignment.

  • relative (bool, optional) – Specifies if table horizontal values are in percentages or mm units.

Raises:

CancelEventError – If the event before_style_table_properties is cancelled and not handled.

Returns:

Table Properties Style instance or None if cancelled.

Return type:

TableProperties | None

Hint

  • TblAbsUnit can be imported from ooodev.format.inner.direct.write.table.props.table_properties

  • TblRelUnit can be imported from ooodev.format.inner.direct.write.table.props.table_properties

  • TableAlignKind can be imported from ooodev.format.inner.direct.write.table.props.table_properties

style_table_props_get()[source]

Gets the Table Properties Style.

Returns:

Table Properties Style instance or None if not available.

Return type:

TableProperties | None