IShapeCollection class
Contents
[
Hide
]IShapeCollection class
Represents a collection of shapes.
The IShapeCollection type exposes the following members:
Properties
| Property | Description |
|---|---|
parent_group | Gets the parent group shape object for the shapes collection. Read-only IGroupShape. |
Gets the element at the specified index.
Read-only IShape.
Indexer
| Name | Description |
|---|---|
[index] |
Methods
| Method | Description |
|---|---|
add_chart(self, type, x, y, width, height) | Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection. |
add_chart(self, type, x, y, width, height, init_with_sample) | Creates a new chart, initializes it with sample series data and settings, and adds it to the end of the shape collection. |
insert_chart(self, type, x, y, width, height, index) | Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index. |
insert_chart(self, type, x, y, width, height, index, init_with_sample) | Creates 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_frame(self, x, y, width, height, data_info) | Creates a new OLE object frame and adds it to the end of the shape collection. |
add_ole_object_frame(self, x, y, width, height, class_name, path) | Creates a new OLE object frame and adds it to the end of the shape collection. |
insert_ole_object_frame(self, index, x, y, width, height, data_info) | Creates a new OLE object frame and inserts it into the shape collection at the specified index. |
insert_ole_object_frame(self, index, x, y, width, height, class_name, path) | Creates a new OLE object frame and inserts it into the shape collection at the specified index. |
add_zoom_frame(self, x, y, width, height, slide) | Creates a new Zoom frame and adds it to the end of the shape collection. |
add_zoom_frame(self, x, y, width, height, slide, image) | Creates a new Zoom frame and adds it to the end of the shape collection. |
insert_zoom_frame(self, index, x, y, width, height, slide) | Creates a new Zoom frame and inserts it into the shape collection at the specified index. |
insert_zoom_frame(self, index, x, y, width, height, slide, image) | Creates a new Zoom frame with a predefined image and inserts it into the shape collection at the specified index. |
add_section_zoom_frame(self, x, y, width, height, section) | Creates a new Section Zoom frame and adds it to the end of the shape collection. |
add_section_zoom_frame(self, x, y, width, height, section, image) | Creates a new Section Zoom frame with a predefined image and adds it to the end of the shape collection. |
insert_section_zoom_frame(self, index, x, y, width, height, section) | Creates a new Section Zoom frame and inserts it into to the shape collection at the specified index. |
insert_section_zoom_frame(self, index, x, y, width, height, section, image) | Creates a new Section Zoom frame with a predefined image and inserts it into to the shape collection at the specified index. |
add_video_frame(self, x, y, width, height, fname) | Creates a new video frame and adds it to the end of the shape collection. |
add_video_frame(self, x, y, width, height, video) | Creates a new video frame and adds it to the end of the shape collection. |
add_audio_frame_embedded(self, x, y, width, height, audio_stream) | Creates 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_embedded(self, x, y, width, height, audio) | Creates 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_embedded(self, index, x, y, width, height, audio_stream) | Creates 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_embedded(self, index, x, y, width, height, audio) | Creates 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_array(self) | Creates and returns an array that contains all shapes. |
to_array(self, start_index, count) | Creates and returns an array that contains all shapes in the specified range. |
reorder(self, index, shape) | Moves the specified shape to a new position within the shape collection. |
reorder(self, index, shapes) | Moves the specified shapes within the shape collection, placing them starting at the given index. |
add_auto_shape(self, shape_type, x, y, width, height) | Creates a new auto shape with default formatting and adds it to the end of the shape collection. |
add_auto_shape(self, shape_type, x, y, width, height, create_from_template) | Creates a new auto shape and adds it to the end of the shape collection, optionally initializing it with default template formatting. |
insert_auto_shape(self, index, shape_type, x, y, width, height) | Creates a new auto shape and inserts it into the shape collection at the specified index, applying default template formatting. |
insert_auto_shape(self, index, shape_type, x, y, width, height, create_from_template) | Creates a new auto shape and inserts it into the shape collection at the specified index, optionally initializing it with default template styling. |
add_group_shape(self) | Creates 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_shape(self, svg_image, x, y, width, height) | Creates 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_connector(self, shape_type, x, y, width, height) | Creates a new connector shape with default template styling and adds it to the end of the shape collection. |
add_connector(self, shape_type, x, y, width, height, create_from_template) | Creates a new connector shape and adds it to the end of the shape collection, optionally applying default template styling. |
insert_connector(self, index, shape_type, x, y, width, height) | Creates a new connector shape and inserts it into the shape collection at the specified index, applying default template styling. |
insert_connector(self, index, shape_type, x, y, width, height, create_from_template) | Creates a new connector shape and inserts it into the shape collection at the specified index, optionally applying default template styling. |
add_clone(self, source_shape, x, y, width, height) | Creates a copy of the specified shape and adds it to the end of the shape collection. |
add_clone(self, source_shape, x, y) | Creates 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_clone(self, source_shape) | Creates 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_clone(self, index, source_shape, x, y, width, height) | Creates a copy of the specified shape and inserts it into the shape collection at the specified index. |
insert_clone(self, index, source_shape, x, y) | Creates 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_clone(self, index, source_shape) | Creates 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_art(self, x, y, width, height, layout_type) | Creates a SmartArt diagram and adds it to the end of the shape collection. |
add_summary_zoom_frame(self, x, y, width, height) | Creates a new Summary Zoom frame and adds it to the end of the shape collection. |
insert_summary_zoom_frame(self, index, x, y, width, height) | Creates a new Summary Zoom frame and inserts it into the shape collection at the specified index. |
insert_video_frame(self, index, x, y, width, height, fname) | Creates a new video frame and inserts it into the shape collection at the specified index. |
add_audio_frame_cd(self, x, y, width, height) | Creates a new audio frame linked to a CD track and adds it to the end of the shape collection. |
insert_audio_frame_cd(self, index, x, y, width, height) | Creates a new audio frame linked to a CD track and inserts it into the shape collection at the specified index. |
add_audio_frame_linked(self, x, y, width, height, fname) | Creates a new audio frame linked to an external audio file and adds it to the end of the shape collection. |
insert_audio_frame_linked(self, index, x, y, width, height, fname) | Creates a new audio frame linked to an external audio file and inserts it into the shape collection at the specified index. |
index_of(self, shape) | Returns the zero-based index of the first occurrence of the specified shape in the collection. |
add_math_shape(self, x, y, width, height) | Creates a new rectangle auto shape to host mathematical content and adds it to the end of the shape collection. |
insert_group_shape(self, index) | Creates 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_frame(self, shape_type, x, y, width, height, image) | Creates a new picture frame containing the specified image and adds it to the end of the shape collection. |
insert_picture_frame(self, index, shape_type, x, y, width, height, image) | Creates a new picture frame containing the specified image and inserts it into the shape collection at the specified index. |
add_table(self, x, y, column_widths, row_heights) | Creates a new table and adds it to the end of the shape collection. |
insert_table(self, index, x, y, column_widths, row_heights) | Creates a new table and inserts it into the shape collection at the specified index. |
remove_at(self, index) | Removes the shape at the specified index from the shape collection. |
remove(self, shape) | Removes the first occurrence of the specified shape from the shape collection. |
clear(self) | Removes all shapes from the shape collection. |
See Also
- class
IShape - module
aspose.slides - library
Aspose.Slides