shape.PowerClip.Content?
The generic entry point for container contents. Naming varies between versions, so prefer .Shapes.
Signature
shape.PowerClip.Content?
Notes
The generic entry point for container contents. Naming varies between versions, so prefer
.Shapes.Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
# Content is the other way into a container; naming varies by version
try:
content = shape.PowerClip.Content
print("Content objects: ", content.Shapes.Count)
except Exception as e:
# if that fails use .Shapes, the most portable route
print("No Content in this version, using PowerClip.Shapes: ", e)
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.PowerClipThe container object. A read-only door — you can inspect the contents
- shape.PowerClip.ShapesShapes inside the container. From here FindShapes can reach text — tha
- shape.PowerClip.Extract?Pulls the contents out, the API equivalent of Extract Contents. Behavi