ooodev.format.calc.modify.cell.numbers package

Module contents

class ooodev.format.calc.modify.cell.numbers.Numbers(*, num_format=0, num_format_index=-1, lang_locale=None, component=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Bases: CellStyleBaseMulti

Style Numbers Format.

New in version 0.9.4.

__init__(*, num_format=0, num_format_index=-1, lang_locale=None, component=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Constructor

Parameters:
  • name (str, optional) – This property specifies the name of the font style. It may contain more than one name separated by comma.

  • size (float, optional) – This value contains the size of the characters in pt (point) units or Class UnitT.

  • font_style (str, optional) – Font style name such as Bold.

  • lang (Lang, optional) – Font Language

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

  • num_format (NumberFormatEnum | int) –

  • num_format_index (NumberFormatIndexEnum | int) –

  • lang_locale (Locale | None) –

  • component (XComponent | None) –

Return type:

None

classmethod from_style(doc, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Returns:

Numbers instance from document properties.

Return type:

Numbers

property prop_inner: InnerNumbers

Gets/Sets Inner Numbers instance

Return type:

InnerNumbers

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str