shape.PowerClip
The container object. A read-only door — you can inspect the contents without entering edit mode. Returns None when the shape isn't a container, so check for that.
Signature
shape.PowerClip
Notes
The container object. A read-only door — you can inspect the contents without entering edit mode. Returns None when the shape isn't a container, so check for that.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
pc = shape.PowerClip # returns None when it is not a container
if pc is None:
print("Not a frame container")
else:
print("This is a container holding", pc.Shapes.Count, " object(s)")
About this section: PowerClip
PowerClip — clipping content into a frame.
- This section has 5 entries; this is one of them.
- See the full section index: PowerClip
Other entries in this section
- shape.AddToPowerClip(clipShape, centerInParent)Puts the current shape inside the clipShape container. The second argu
- shape.PowerClip.ShapesShapes inside the container. From here FindShapes can reach text — tha
- shape.PowerClip.Content?The generic entry point for container contents. Naming varies between
- shape.PowerClip.Extract?Pulls the contents out, the API equivalent of Extract Contents. Behavi