openpyxl.chart.text模块

class openpyxl.chart.text.RichText(bodyPr=None, lstStyle=None, p=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

来自规范:21.2.2.216

此元素指定文本格式。不支持lststyle元素。

bodyPr

值的类型必须小于class“openpyxl.drawing.text.richtextproperties”>

lstStyle

值的类型必须小于class“openpyxl.drawing.text.liststyle”>

p

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

paragraphs

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

properties

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

tagname = 'rich'
class openpyxl.chart.text.Text(strRef=None, rich=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

该值可以是单元格引用,也可以是文本元素。如果两者都存在,则将使用引用。

rich

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

strRef

值的类型必须为<class'openpyxl.chart.data_source.strref'>

tagname = 'tx'
to_tree(tagname=None, idx=None, namespace=None)[源代码]