openpyxl.cell.text模块¶
Richtext定义
- class openpyxl.cell.text.InlineFont(rFont=None, charset=None, family=None, b=None, i=None, strike=None, outline=None, shadow=None, condense=None, extend=None, color=None, sz=None, u=None, vertAlign=None, scheme=None)[源代码]¶
-
内联文本的字体,因为,是的,您需要的是具有相同元素但约束不同的不同对象。
- b¶
值的类型必须小于class'bool'>
- charset¶
值的类型必须小于class“int”>
- color¶
值的类型必须小于class“openpyxl.styles.colors.color”>
- condense¶
值的类型必须小于class'bool'>
- extend¶
值的类型必须小于class'bool'>
- family¶
值的类型必须小于class“float”>
- i¶
值的类型必须小于class'bool'>
- outline¶
值的类型必须小于class'bool'>
- rFont¶
值的类型必须小于class'str'>
- scheme¶
Value must be one of {'major', 'minor'}
- shadow¶
值的类型必须小于class'bool'>
- strike¶
值的类型必须小于class'bool'>
- sz¶
值的类型必须小于class“float”>
- tagname = 'RPrElt'¶
- u¶
Value must be one of {'single', 'doubleAccounting', 'singleAccounting', 'double'}
- vertAlign¶
Value must be one of {'superscript', 'baseline', 'subscript'}
- class openpyxl.cell.text.PhoneticProperties(fontId=None, type=None, alignment=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- alignment¶
Value must be one of {'left', 'distributed', 'center', 'noControl'}
- fontId¶
值的类型必须小于class“int”>
- tagname = 'phoneticPr'¶
- type¶
Value must be one of {'noConversion', 'halfwidthKatakana', 'Hiragana', 'fullwidthKatakana'}
- class openpyxl.cell.text.PhoneticText(sb=None, eb=None, t=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- eb¶
值的类型必须小于class“int”>
- sb¶
值的类型必须小于class“int”>
- t¶
值的类型必须小于class'str'>
- tagname = 'rPh'¶
- text¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- class openpyxl.cell.text.RichText(rPr=None, t=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- font¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- rPr¶
值的类型必须为<class'openpyxl.cell.text.inlinefont'>
- t¶
值的类型必须小于class'str'>
- tagname = 'RElt'¶
- text¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- class openpyxl.cell.text.Text(t=None, r=(), rPh=(), phoneticPr=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- PhoneticProperties¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- property content¶
去除所有格式的文本
- formatted¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- phonetic¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- phoneticPr¶
值的类型必须小于class“openpyxl.cell.text.phonicalProperties”>
- plain¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- r¶
只能包含声明类型的对象的序列(列表或元组)
- rPh¶
只能包含声明类型的对象的序列(列表或元组)
- t¶
值的类型必须小于class'str'>
- tagname = 'text'¶