openpyxl.chart.shapes module¶
- class openpyxl.chart.shapes.GraphicalProperties(bwMode=None, xfrm=None, noFill=None, solidFill=None, gradFill=None, pattFill=None, ln=None, scene3d=None, custGeom=None, prstGeom=None, sp3d=None, extLst=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
Somewhat vaguely 21.2.2.197 says this:
This element specifies the formatting for the parent chart element. The custGeom, prstGeom, scene3d, and xfrm elements are not supported. The bwMode attribute is not supported.
This doesn’t leave much. And the element is used in different places.
- bwMode¶
Value must be one of {‘blackGray’, ‘gray’, ‘hidden’, ‘blackWhite’, ‘white’, ‘grayWhite’, ‘auto’, ‘black’, ‘ltGray’, ‘invGray’, ‘clr’}
- custGeom¶
Values must be of type <class ‘openpyxl.drawing.geometry.CustomGeometry2D’>
- extLst¶
Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>
- gradFill¶
Values must be of type <class ‘openpyxl.drawing.fill.GradientFillProperties’>
- line¶
Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptve name is desired (eg. “underline” for “u”)
- ln¶
Values must be of type <class ‘openpyxl.drawing.line.LineProperties’>
- noFill¶
Values must be of type <class ‘bool’>
- pattFill¶
Values must be of type <class ‘openpyxl.drawing.fill.PatternFillProperties’>
- prstGeom¶
Values must be of type <class ‘openpyxl.drawing.geometry.PresetGeometry2D’>
- scene3d¶
Values must be of type <class ‘openpyxl.drawing.geometry.Scene3D’>
- shape3D¶
Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptve name is desired (eg. “underline” for “u”)
- solidFill¶
Values must be of type <class ‘openpyxl.drawing.colors.ColorChoice’>
- sp3d¶
Values must be of type <class ‘openpyxl.drawing.geometry.Shape3D’>
- tagname = 'spPr'¶
- transform¶
Aliases can be used when either the desired attribute name is not allowed or confusing in Python (eg. “type”) or a more descriptve name is desired (eg. “underline” for “u”)
- xfrm¶
Values must be of type <class ‘openpyxl.drawing.geometry.Transform2D’>