fastpyxl.styles.named_styles module

class fastpyxl.styles.named_styles.NamedStyle(name='Normal', font=None, fill=None, border=None, alignment=None, number_format=None, protection=None, builtinId=None, hidden=False)[source]

Bases: Serialisable

Named and editable styles

alignment: Alignment | None
as_name()[source]

Return relevant named style

as_tuple()[source]

Return a style array representing the current style

as_xf()[source]

Return equivalent XfStyle

bind(wb)[source]

Bind a named style to a workbook

border: Border | None
builtinId: int | None
fill: Fill | None
font: Font | None
hidden: bool | None
name: str | None
number_format: str | None
protection: Protection | None
tagname = 'namedStyle'
xml_order = ('alignment', 'border', 'fill', 'font', 'number_format', 'protection')
class fastpyxl.styles.named_styles.NamedStyleList(iterable=())[source]

Bases: list

Named styles are editable and can be applied to multiple objects

As only the index is stored in referencing objects the order mus be preserved.

Returns a list of NamedStyles

append(style)[source]

Append object to the end of the list.

property names