Paper Office
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
= builtinId

fill

attributefill
= fill or PatternFill()

font

attributefont
= font or Font()

hidden

attributehidden
= hidden

idx_base

attributeidx_base
= 0

name

attributename
= name

namespace

attributenamespace
= None

number_format

attributenumber_format
= number_format

protection

attributeprotection
= protection or Protection()

tagname

attributetagname

Functions

__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

paramwb

from_tree

funcfrom_tree(node)

Create object from XML

paramnode

to_tree

functo_tree(tagname=None, idx=None, namespace=None)
paramtagname
= None
paramidx
= None
paramnamespace
= None

On this page