clear method

clear()

Clears shadow format.

def clear(self):
    ...

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