openpyxl.styles.colors module

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

基类:openpyxl.descriptors.serialisable.Serialisable

Named colors for use in styles.

auto

Values must be of type <class ‘bool’>

property index
indexed

Values must be of type <class ‘int’>

rgb

Values must be of type <class ‘str’>

tagname = 'color'
theme

Values must be of type <class ‘int’>

tint

Values must be of type <class ‘float’>

type

Values must be of type <class ‘str’>

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

基类:openpyxl.descriptors.base.Typed

expected_type

:py:class:`openpyxl.styles.colors.Color`的别名

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

基类:openpyxl.descriptors.serialisable.Serialisable

property index
indexedColors

Wrap a sequence in an containing object

mruColors

Wrap a sequence in an containing object

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

基类:openpyxl.descriptors.base.Typed

Descriptor for aRGB values If not supplied alpha is 00

expected_type

:py:class:`str`的别名

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

基类:openpyxl.descriptors.serialisable.Serialisable

rgb

Values must be of type <class ‘str’>

tagname = 'rgbColor'