ShapeCollection class

ShapeCollection class

Represents a collection of a shapes.

The ShapeCollection type exposes the following members:

Properties

PropertyDescription
parent_groupReturns parent GroupShape object for a 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, initialize it with sample series data and settings and adds
it to the end of the collection.
add_chartCreates a new Chart and adds it to the end of the collection.
insert_chartCreates a new Chart, initialize it with sample series data and settings and inserts
it to the specified position in the collection.
insert_chartCreates a new Chart and inserts it to the specified position in the collection.
add_zoom_frameAdds a new Zoom object to the end of a collection.
add_zoom_frameAdds a new Zoom object to the end of a collection.
insert_zoom_frameCreates a new Zoom object and inserts it to a collection at the specified index.
insert_zoom_frameCreates a new Zoom object and inserts it to a collection at the specified index.
add_section_zoom_frameAdds a new Section Zoom object to the end of a collection.
add_section_zoom_frameAdds a new Section Zoom object to the end of a collection with a predefined image.
insert_section_zoom_frameCreates a new Section Zoom object and inserts into to a collection at the specified index.
insert_section_zoom_frameCreates a new Section Zoom object and inserts it to a collection at the specified index.
add_ole_object_frameAdds a new OLE object to the end of a collection.
add_ole_object_frameAdds a new OLE object to the end of a collection.
insert_ole_object_frameCreates a new OLE object and inserts it to a collection at the specified index.
insert_ole_object_frameCreates a new OLE object and inserts it to a collection at the specified index.
add_video_frameAdds a new video frame to the end of a collection.
add_video_frameAdds a new video frame to the end of a collection.
add_audio_frame_embeddedAdds a new audio frame with embedded audio file to the end of a collection.
Embedded audio file can be a WAV only.
It adds new audio into Presentation.Audios list.
add_audio_frame_embeddedAdds a new audio frame with embedded audio file to the end of a collection.
It uses audio file from Presentation.Audios list.
insert_audio_frame_embeddedInsert an AudioFrame with embedded audio file.
Embedded audio file sound can be a WAV only.
insert_audio_frame_embeddedInsert an AudioFrame with embedded audio file.
It uses audio file from Presentation.Audios list.
to_arrayCreates and returns an array with all shapse in it.
to_arrayCreates and returns an array with all shapes from the specified range in it.
An index of a first shape to return.A number of shapes to return.
reorderMoves a shape from the collection to the specified position.
reorderMoves shapes from the collection to the specified position.
Shapes will be placed starting from index in order they appear in list.
add_auto_shapeCreates a new AutoShape, tunes it from default template and adds it to the end of the collection.
add_auto_shapeCreates a new AutoShape and adds it to the end of the collection.
insert_auto_shapeCreates a new AutoShape, tunes it from default template and inserts it to
the collection at the specified index.
Note: the type of the shape will be determined by the shapeType parameter.
insert_auto_shapeCreates a new AutoShape and inserts it to the collection at the specified index.
Note: the type of the shape will be determined by the shapeType parameter.
add_group_shapeCreates a new GroupShape and adds it to the end of the collection.
GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape.
add_group_shapeCreates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection.
add_connectorCreates a new Connector, tunes it from default template and adds it to the end of the collection.
add_connectorCreates a new Connector and adds it to the end of the collection.
insert_connectorCreates a new Connector, tunes it from default template and inserts it to
the collection at the specified index.
insert_connectorCreates a new Connector and inserts it to the collection at the specified index.
add_cloneAdds a copy of a specified shape to the end of the collection.
add_cloneAdds a copy of a specified shape to the end of the collection.
Width and Height of the new shape are equal to Width and Height of the source_shape.
add_cloneAdds a copy of a specified shape to the end of the collection.
X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the source_shape.
insert_cloneInserts a copy of a specified shape to specified position of the collection.
insert_cloneInserts a copy of a specified shape to specified position of the collection.
Width and Height of the new shape are equal to Width and Height of the source_shape.
insert_cloneInserts a copy of a specified shape to specified position of the collection.
X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the source_shape.
add_smart_artAdd SmartArt diagram.
add_summary_zoom_frameAdds a new Summary Zoom object to the end of a collection.
insert_summary_zoom_frameCreates a new Summary Zoom object and inserts it to a collection at the specified index.
insert_video_frameCreates a new video frame and inserts it to a collection at the specified index.
add_audio_frame_cdAdds an AudioFrame with CD to the end of collection.
insert_audio_frame_cdInsert an AudioFrame with CD.
add_audio_frame_linkedAdds a new audio frame with linked audio file to the end of a collection.
insert_audio_frame_linkedCreates a new audio frame with linked audio file and inserts it to a collection at the specified index.
index_ofReturns the zero-based index of the first occurrence of a shape in the collection.
add_math_shapeCreates a new Autoshape tuned from default template to math content and adds it to the end of the collection.
insert_group_shapeCreates a new GroupShape and inserts it to the collection at the specified index.
GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape.
add_picture_frameCreates a new PictureFrame and adds it to the end of the collection.
insert_picture_frameCreates a new PictureFrame and inserts it to the collection at the specified index.
add_tableCreates a new Table and adds it to the end of the collection.
insert_tableCreates a new Table and inserts it to the collection at the specified index.
remove_atRemoves the element at the specified index of the collection.
removeRemoves the first occurrence of a specific shape from the collection.
clearRemoves all shapes from the collection.

See Also