paper-xlsxAPI referencestyles.named_styles
NamedStyle
paper-xlsx 0.2.1 API reference
Named and editable styles
NamedStyle(name='Normal', font=None, fill=None, border=None, alignment=None, number_format=None, protection=None, builtinId=None, hidden=False)Attributes
alignment
attributealignment= alignment or Alignment()border
attributeborder= border or Border()builtinId
attributebuiltinId= builtinIdfill
attributefill= fill or PatternFill()font
attributefont= font or Font()hidden
attributehidden= hiddenidx_base
attributeidx_base= 0name
attributename= namenamespace
attributenamespace= Nonenumber_format
attributenumber_format= number_formatprotection
attributeprotection= protection or Protection()tagname
attributetagnameFunctions
__iter__
func__iter__()as_name
funcas_name()Return relevant named style
as_tuple
funcas_tuple()Return a style array representing the current style
as_xf
funcas_xf()Return equivalent XfStyle
bind
funcbind(wb)Bind a named style to a workbook
paramwbfrom_tree
funcfrom_tree(node)Create object from XML
paramnodeto_tree
functo_tree(tagname=None, idx=None, namespace=None)paramtagname= Noneparamidx= Noneparamnamespace= None