openpyxl.styles.cellu样式模块

class openpyxl.styles.cell_style.ArrayDescriptor(key)[源代码]

基类:object

class openpyxl.styles.cell_style.CellStyle(numFmtId=0, fontId=0, fillId=0, borderId=0, xfId=None, quotePrefix=None, pivotButton=None, applyNumberFormat=None, applyFont=None, applyFill=None, applyBorder=None, applyAlignment=None, applyProtection=None, alignment=None, protection=None, extLst=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

alignment

值的类型必须小于class“openpyxl.styles.Alignment.Alignment”>

property applyAlignment
applyBorder

值的类型必须小于class'bool'>

applyFill

值的类型必须小于class'bool'>

applyFont

值的类型必须小于class'bool'>

applyNumberFormat

值的类型必须小于class'bool'>

property applyProtection
borderId

值的类型必须小于class“int”>

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

fillId

值的类型必须小于class“int”>

fontId

值的类型必须小于class“int”>

classmethod from_array(style)[源代码]

从样式数组转换

numFmtId

值的类型必须小于class“int”>

pivotButton

值的类型必须小于class'bool'>

protection

值的类型必须小于class“openpyxl.styles.protection.protection”>

quotePrefix

值的类型必须小于class'bool'>

tagname = 'xf'
to_array()[源代码]

转换为StyleArray

xfId

值的类型必须小于class“int”>

class openpyxl.styles.cell_style.CellStyleList(count=None, xf=())[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

alignment

只能包含声明类型的对象的序列(列表或元组)

property count
protection

只能包含声明类型的对象的序列(列表或元组)

tagname = 'cellXfs'
xf

只能包含声明类型的对象的序列(列表或元组)

class openpyxl.styles.cell_style.StyleArray(args=[0, 0, 0, 0, 0, 0, 0, 0, 0])[源代码]

基类:array.array

带数组的简化命名元组

alignmentId
borderId
fillId
fontId
numFmtId
pivotButton
protectionId
quotePrefix
tagname = 'xf'
xfId