clear method

clear()

Clears shadow format.

def clear(self):
    ...

Examples

Shows how to work with a shadow formatting for the shape.

doc = aw.Document(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 == awd.ShadowType.SHADOW2:
    shape.shadow_format.type == awd.ShadowType.SHADOW7
if shape.shadow_format.type == awd.ShadowType.SHADOW_MIXED:
    shape.shadow_format.clear()

See Also