Formats#

class ansys.scade.almgw_msoffice.utils.Formats(wb: xlsxwriter.Workbook)#

Cache for formats.

Initialize the cache.

Overview#

add_format

Add a new format.

get

Return a format.

Import detail#

from ansys.scade.almgw_msoffice.utils import Formats

Attribute detail#

Formats.formats: Dict[str, xlsxwriter.format.Format]#
Formats.wb#

Method detail#

Formats.add_format(fmt_name: str, fmt_dict: FormatCtor) xlsxwriter.format.Format#

Add a new format.

Formats.get(name: str) xlsxwriter.format.Format | None#

Return a format.