OpenPYXL.Chart.Legend模块

class openpyxl.chart.legend.Legend(legendPos='r', legendEntry=(), layout=None, overlay=None, spPr=None, txPr=None, extLst=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

extLst

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

graphicalProperties

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

layout

值的类型必须小于class“openpyxl.chart.layout.layout”>

legendEntry

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

legendPos

Value must be one of {'tr', 'r', 'l', 't', 'b'}

overlay

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

position

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

spPr

值的类型必须小于class“openpyxl.chart.shapes.graphicalproperties”>

tagname = 'legend'
textProperties

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

txPr

值的类型必须小于class“openpyxl.chart.text.richtext”>

class openpyxl.chart.legend.LegendEntry(idx=0, delete=False, txPr=None, extLst=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

delete

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

extLst

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

idx

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

tagname = 'legendEntry'
txPr

值的类型必须小于class“openpyxl.chart.text.richtext”>