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.SerialisableNamed colors for use in styles.
-
auto¶ Values must be of type <class ‘bool’>
-
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’>
-
value¶
-
-
class
openpyxl.styles.colors.ColorList(indexedColors=(), mruColors=())[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
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.TypedDescriptor for aRGB values If not supplied alpha is 00
-
expected_type¶ builtins.str的别名
-
-
class
openpyxl.styles.colors.RgbColor(rgb=None)[源代码]¶ 基类:
openpyxl.descriptors.serialisable.Serialisable-
rgb¶ Values must be of type <class ‘str’>
-
tagname= 'rgbColor'¶
-