ShadowType enumeration
ShadowType enumeration
Specifies the type of a shape shadow.
ShadowType is not a simple attribute, but a preset that sets at once several attributes which form the shadow appearance.
Members
| Name | Description |
|---|---|
| SHADOW_MIXED | None of predefined shadow presets. |
| SHADOW1 | First shadow type. |
| SHADOW10 | Tenth shadow type. |
| SHADOW11 | Eleventh shadow type. |
| SHADOW12 | Twelfth shadow type. |
| SHADOW13 | Thirteenth shadow type. |
| SHADOW14 | Fourteenth shadow type. |
| SHADOW15 | Fifteenth shadow type. |
| SHADOW16 | Sixteenth shadow type. |
| SHADOW17 | Seventeenth shadow type. |
| SHADOW18 | Eighteenth shadow type. |
| SHADOW19 | Nineteenth shadow type. |
| SHADOW2 | Second shadow type. |
| SHADOW20 | Twentieth shadow type. |
| SHADOW21 | Twenty first shadow type. |
| SHADOW22 | Twenty second shadow type. |
| SHADOW23 | Twenty third shadow type. |
| SHADOW24 | Twenty forth shadow type. |
| SHADOW25 | Twenty fifth shadow type. |
| SHADOW26 | Twenty sixth shadow type. |
| SHADOW27 | Twenty seventh shadow type. |
| SHADOW28 | Twenty eighth shadow type. |
| SHADOW29 | Twenty ninth shadow type. |
| SHADOW3 | Third shadow type. |
| SHADOW30 | Thirtieth shadow type. |
| SHADOW31 | Thirty first shadow type. |
| SHADOW32 | Thirty second shadow type. |
| SHADOW33 | Thirty third shadow type. |
| SHADOW34 | Thirty forth shadow type. |
| SHADOW35 | Thirty fifth shadow type. |
| SHADOW36 | Thirty sixth shadow type. |
| SHADOW37 | Thirty seventh shadow type. |
| SHADOW38 | Thirty eighth shadow type. |
| SHADOW39 | Thirty ninth shadow type. |
| SHADOW4 | Fourth shadow type. |
| SHADOW40 | Fortieth shadow type. |
| SHADOW41 | Forty first shadow type. |
| SHADOW42 | Forty second shadow type. |
| SHADOW43 | Forty third shadow type. |
| SHADOW5 | Fifth shadow type. |
| SHADOW6 | Sixth shadow type. |
| SHADOW7 | Seventh shadow type. |
| SHADOW8 | Eighth shadow type. |
| SHADOW9 | Ninth shadow type. |
Examples
Shows how to work with a shadow formatting for the shape.
doc = aw.Document(file_name=MY_DIR + 'Shape stroke pattern border.docx')
shape = doc.get_child_nodes(aw.NodeType.SHAPE, True)[0].as_shape()
if shape.shadow_format.visible and shape.shadow_format.type == aw.drawing.ShadowType.SHADOW2:
shape.shadow_format.type = aw.drawing.ShadowType.SHADOW7
if shape.shadow_format.type == aw.drawing.ShadowType.SHADOW_MIXED:
shape.shadow_format.clear()
See Also
- module aspose.words.drawing