openpyxl.styles.differential module

class openpyxl.styles.differential.DifferentialStyle(font=None, numFmt=None, fill=None, alignment=None, border=None, protection=None, extLst=None)[source]

Bases: Serialisable

alignment

Values must be of type <class ‘openpyxl.styles.alignment.Alignment’>

border

Values must be of type <class ‘openpyxl.styles.borders.Border’>

fill

Values must be of type <class ‘openpyxl.styles.fills.Fill’>

font

Values must be of type <class ‘openpyxl.styles.fonts.Font’>

numFmt

Values must be of type <class ‘openpyxl.styles.numbers.NumberFormat’>

protection

Values must be of type <class ‘openpyxl.styles.protection.Protection’>

tagname = 'dxf'
class openpyxl.styles.differential.DifferentialStyleList(dxf=(), count=None)[source]

Bases: Serialisable

Dedupable container for differential styles.

add(dxf)[source]

Add a differential style and return its index

append(dxf)[source]

Check to see whether style already exists and append it if does not.

property count
dxf

A sequence (list or tuple) that may only contain objects of the declared type

styles

A sequence (list or tuple) that may only contain objects of the declared type

tagname = 'dxfs'