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

NameDescription
SHADOW_MIXEDNone of predefined shadow presets.
SHADOW1First shadow type.
SHADOW10Tenth shadow type.
SHADOW11Eleventh shadow type.
SHADOW12Twelfth shadow type.
SHADOW13Thirteenth shadow type.
SHADOW14Fourteenth shadow type.
SHADOW15Fifteenth shadow type.
SHADOW16Sixteenth shadow type.
SHADOW17Seventeenth shadow type.
SHADOW18Eighteenth shadow type.
SHADOW19Nineteenth shadow type.
SHADOW2Second shadow type.
SHADOW20Twentieth shadow type.
SHADOW21Twenty first shadow type.
SHADOW22Twenty second shadow type.
SHADOW23Twenty third shadow type.
SHADOW24Twenty forth shadow type.
SHADOW25Twenty fifth shadow type.
SHADOW26Twenty sixth shadow type.
SHADOW27Twenty seventh shadow type.
SHADOW28Twenty eighth shadow type.
SHADOW29Twenty ninth shadow type.
SHADOW3Third shadow type.
SHADOW30Thirtieth shadow type.
SHADOW31Thirty first shadow type.
SHADOW32Thirty second shadow type.
SHADOW33Thirty third shadow type.
SHADOW34Thirty forth shadow type.
SHADOW35Thirty fifth shadow type.
SHADOW36Thirty sixth shadow type.
SHADOW37Thirty seventh shadow type.
SHADOW38Thirty eighth shadow type.
SHADOW39Thirty ninth shadow type.
SHADOW4Fourth shadow type.
SHADOW40Fortieth shadow type.
SHADOW41Forty first shadow type.
SHADOW42Forty second shadow type.
SHADOW43Forty third shadow type.
SHADOW5Fifth shadow type.
SHADOW6Sixth shadow type.
SHADOW7Seventh shadow type.
SHADOW8Eighth shadow type.
SHADOW9Ninth 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