openpyxl.styles.colors模块

class openpyxl.styles.colors.Color(rgb='00000000', indexed=None, auto=None, theme=None, tint=0.0, index=None, type='rgb')[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

用于样式的命名颜色。

auto

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

property index
indexed

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

rgb

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

tagname = 'color'
theme

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

tint

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

type

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

property value
class openpyxl.styles.colors.ColorDescriptor(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

expected_type

alias of openpyxl.styles.colors.Color

class openpyxl.styles.colors.ColorList(indexedColors=(), mruColors=())[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

property index
indexedColors

在包含对象中包装序列

mruColors

在包含对象中包装序列

tagname = 'colors'
class openpyxl.styles.colors.RGB(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.Typed

如果未提供argb值的描述符alpha为00

expected_type

alias of str

class openpyxl.styles.colors.RgbColor(rgb=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

rgb

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

tagname = 'rgbColor'