IShapeCollection class

IShapeCollection class

Represents a collection of shapes.

The IShapeCollection type exposes the following members:

Properties

PropertyDescription
parent_groupGets the parent group shape object for the shapes collection.
Read-only IGroupShape.

Gets the element at the specified index. Read-only IShape.

Indexer

NameDescription
[index]

Methods

MethodDescription
add_chartCreates a new chart, initializes it with sample series data and settings, and adds
it to the end of the shape collection.
add_chartCreates a new chart, initializes it with sample series data and settings, and adds
it to the end of the shape collection.
insert_chartCreates a new chart, initializes it with sample series data and settings,
and inserts it into the shape collection at the specified index.
insert_chartCreates a new chart, initializes it with sample series data and settings,
and inserts it into the shape collection at the specified index.
add_ole_object_frameCreates a new OLE object frame and adds it to the end of the shape collection.
add_ole_object_frameCreates a new OLE object frame and adds it to the end of the shape collection.
insert_ole_object_frameCreates a new OLE object frame and inserts it into the shape collection at the specified index.
insert_ole_object_frameCreates a new OLE object frame and inserts it into the shape collection at the specified index.
add_zoom_frameCreates a new Zoom frame and adds it to the end of the shape collection.
add_zoom_frameCreates a new Zoom frame and adds it to the end of the shape collection.
insert_zoom_frameCreates a new Zoom frame and inserts it into the shape collection at the specified index.
insert_zoom_frameCreates a new Zoom frame with a predefined image and inserts it into the shape collection
at the specified index.
add_section_zoom_frameCreates a new Section Zoom frame and adds it to the end of the shape collection.
add_section_zoom_frameCreates a new Section Zoom frame with a predefined image and adds it to the end of the
shape collection.
insert_section_zoom_frameCreates a new Section Zoom frame and inserts it into to the shape collection at the
specified index.
insert_section_zoom_frameCreates a new Section Zoom frame with a predefined image and inserts it into to the shape
collection at the specified index.
add_video_frameCreates a new video frame and adds it to the end of the shape collection.
add_video_frameCreates a new video frame and adds it to the end of the shape collection.
add_audio_frame_embeddedCreates a new audio frame with an embedded WAV file and adds it to the end of the
shape collection. The embedded audio is added to the Presentation.Audios collection.
add_audio_frame_embeddedCreates a new audio frame and adds it to the end of the shape collection using an
existing audio object from the Presentation.Audios list.
insert_audio_frame_embeddedCreates a new audio frame with an embedded WAV file and inserts it into the shape
collection at the specified index. The embedded audio is added to the Presentation.Audios
collection.
insert_audio_frame_embeddedCreates a new audio frame and inserts it into the shape collection at the specified index
using an existing audio object from the Presentation.Audios list.
to_arrayCreates and returns an array that contains all shapes.
to_arrayCreates and returns an array that contains all shapes in the specified range.
reorderMoves the specified shape to a new position within the shape collection.
reorderMoves the specified shapes within the shape collection, placing them starting at the given index.
add_auto_shapeCreates a new auto shape with default formatting and adds it to the end of the
shape collection.
add_auto_shapeCreates a new auto shape and adds it to the end of the shape collection, optionally
initializing it with default template formatting.
insert_auto_shapeCreates a new auto shape and inserts it into the shape collection at the specified index,
applying default template formatting.
insert_auto_shapeCreates a new auto shape and inserts it into the shape collection at the specified index,
optionally initializing it with default template styling.
add_group_shapeCreates a new empty group shape and adds it to the end of the shape collection.
The group’s frame will automatically adjust to fit any shapes added to it.
add_group_shapeCreates a new group shape, converts the specified SVG image into individual shapes,
and adds the resulting group to the end of the shape collection.
add_connectorCreates a new connector shape with default template styling and adds it to the end of the
shape collection.
add_connectorCreates a new connector shape and adds it to the end of the shape collection,
optionally applying default template styling.
insert_connectorCreates a new connector shape and inserts it into the shape collection at the specified index,
applying default template styling.
insert_connectorCreates a new connector shape and inserts it into the shape collection at the specified index,
optionally applying default template styling.
add_cloneCreates a copy of the specified shape and adds it to the end of the shape collection.
add_cloneCreates a copy of the specified shape and adds it to the end of the shape collection.
The new shape retains the width and height of the source_shape.
add_cloneCreates a copy of the specified shape and adds it to the end of the shape collection.
The cloned shape retains the original’s position and size.
insert_cloneCreates a copy of the specified shape and inserts it into the shape collection at the specified index.
insert_cloneCreates a copy of the specified shape and inserts it into the shape collection at the specified index.
The new shape retains the width and height of the source_shape.
insert_cloneCreates a copy of the specified shape and inserts it into the shape collection at the specified index.
The cloned shape retains the original’s position and size.
add_smart_artCreates a SmartArt diagram and adds it to the end of the shape collection.
add_summary_zoom_frameCreates a new Summary Zoom frame and adds it to the end of the shape collection.
insert_summary_zoom_frameCreates a new Summary Zoom frame and inserts it into the shape collection at the specified index.
insert_video_frameCreates a new video frame and inserts it into the shape collection at the specified index.
add_audio_frame_cdCreates a new audio frame linked to a CD track and adds it to the end of the shape collection.
insert_audio_frame_cdCreates a new audio frame linked to a CD track and inserts it into the shape collection
at the specified index.
add_audio_frame_linkedCreates a new audio frame linked to an external audio file and adds it to the end of
the shape collection.
insert_audio_frame_linkedCreates a new audio frame linked to an external audio file and inserts it into the shape
collection at the specified index.
index_ofReturns the zero-based index of the first occurrence of the specified shape in the collection.
add_math_shapeCreates a new rectangle auto shape to host mathematical content and adds it to the
end of the shape collection.
insert_group_shapeCreates a new empty group shape and inserts it to the shape collection at the specified index.
The group’s frame will automatically adjust to fit any shapes added to it.
add_picture_frameCreates a new picture frame containing the specified image and adds it to the end of the
shape collection.
insert_picture_frameCreates a new picture frame containing the specified image and inserts it into the shape
collection at the specified index.
add_tableCreates a new table and adds it to the end of the shape collection.
insert_tableCreates a new table and inserts it into the shape collection at the specified index.
remove_atRemoves the shape at the specified index from the shape collection.
removeRemoves the first occurrence of the specified shape from the shape collection.
clearRemoves all shapes from the shape collection.

See Also