hidden property

ShapeBase.hidden property

Gets or sets a boolean value indicating whether the shape is visible.

@property
def hidden(self) -> bool:
    ...

@hidden.setter
def hidden(self, value: bool):
    ...

Remarks

The default value is False.

Examples

Shows how to hide the shape.

doc = aw.Document(file_name=MY_DIR + 'Shadow color.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
if not shape.hidden:
    shape.hidden = True
doc.save(file_name=ARTIFACTS_DIR + 'Shape.Hidden.docx')

See Also