ShapeCollection Class

Represents a collection of a shapes.
Inheritance Hierarchy
SystemObject
  Aspose.SlidesDomObjectGroupShape
    Aspose.SlidesShapeCollection

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.4.0.0 (22.4)
Syntax
public sealed class ShapeCollection : DomObject<GroupShape>, 
	IShapeCollection, IGenericCollection<IShape>, IEnumerable<IShape>, 
	IEnumerable, ICollection

The ShapeCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements actually contained in the collection. Read-only Int32.
Public propertyIsSynchronized
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Public propertyItem
Gets the element at the specified index. Read-only IShape.
Public propertyParentGroup
Returns parent GroupShape object for a shapes collection. Read-only IGroupShape.
Public propertySyncRoot
Returns a synchronization root. Read-only Object.
Methods
  NameDescription
Public methodAddAudioFrameCD
Adds an AudioFrame with CD to the end of collection.
Public methodAddAudioFrameEmbedded(Single, Single, Single, Single, IAudio)
Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list.
Public methodAddAudioFrameEmbedded(Single, Single, Single, Single, Stream)
Adds 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.
Public methodAddAudioFrameLinked
Adds a new audio frame with linked audio file to the end of a collection.
Public methodAddAutoShape(ShapeType, Single, Single, Single, Single)
Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
Public methodAddAutoShape(ShapeType, Single, Single, Single, Single, Boolean)
Creates a new AutoShape and adds it to the end of the collection.
Public methodAddChart(ChartType, Single, Single, Single, Single)
Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection.
Public methodAddChart(ChartType, Single, Single, Single, Single, Boolean)
Creates a new Chart and adds it to the end of the collection.
Public methodAddClone(IShape)
Adds 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 sourceShape.
Public methodAddClone(IShape, Single, Single)
Adds 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 sourceShape.
Public methodAddClone(IShape, Single, Single, Single, Single)
Adds a copy of a specified shape to the end of the collection.
Public methodAddConnector(ShapeType, Single, Single, Single, Single)
Creates a new Connector, tunes it from default template and adds it to the end of the collection.
Public methodAddConnector(ShapeType, Single, Single, Single, Single, Boolean)
Creates a new Connector and adds it to the end of the collection.
Public methodAddGroupShape
Creates 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.
Public methodAddGroupShape(ISvgImage, Single, Single, Single, Single)
Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection.
Public methodAddMathShape
Creates a new Autoshape tuned from default template to math content and adds it to the end of the collection.
Public methodCode exampleAddOleObjectFrame(Single, Single, Single, Single, IOleEmbeddedDataInfo)
Adds a new OLE object to the end of a collection.
Public methodAddOleObjectFrame(Single, Single, Single, Single, String, String)
Adds a new OLE object to the end of a collection.
Public methodAddPictureFrame
Creates a new PictureFrame and adds it to the end of the collection.
Public methodCode exampleAddSectionZoomFrame(Single, Single, Single, Single, ISection)
Adds a new Section Zoom object to the end of a collection.
Public methodCode exampleAddSectionZoomFrame(Single, Single, Single, Single, ISection, IPPImage)
Adds a new Section Zoom object to the end of a collection with a predefined image.
Public methodCode exampleAddSmartArt
Add SmartArt diagram.
Public methodCode exampleAddSummaryZoomFrame
Adds a new Summary Zoom object to the end of a collection.
Public methodAddTable
Creates a new Table and adds it to the end of the collection.
Public methodAddVideoFrame(Single, Single, Single, Single, IVideo)
Adds a new video frame to the end of a collection.
Public methodAddVideoFrame(Single, Single, Single, Single, String)
Adds a new video frame to the end of a collection.
Public methodCode exampleAddZoomFrame(Single, Single, Single, Single, ISlide)
Adds a new Zoom object to the end of a collection.
Public methodCode exampleAddZoomFrame(Single, Single, Single, Single, ISlide, IPPImage)
Adds a new Zoom object to the end of a collection.
Public methodClear
Removes all shapes from the collection.
Public methodCopyTo
Copies all elements from the collection to the specified array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Returns the zero-based index of the first occurrence of a shape in the collection.
Public methodInsertAudioFrameCD
Insert an AudioFrame with CD.
Public methodInsertAudioFrameEmbedded(Int32, Single, Single, Single, Single, IAudio)
Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.
Public methodInsertAudioFrameEmbedded(Int32, Single, Single, Single, Single, Stream)
Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only.
Public methodInsertAudioFrameLinked
Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.
Public methodInsertAutoShape(Int32, ShapeType, Single, Single, Single, Single)
Creates 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.
Public methodInsertAutoShape(Int32, ShapeType, Single, Single, Single, Single, Boolean)
Creates 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.
Public methodInsertChart(ChartType, Single, Single, Single, Single, Int32)
Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection.
Public methodInsertChart(ChartType, Single, Single, Single, Single, Int32, Boolean)
Creates a new Chart and inserts it to the specified position in the collection.
Public methodInsertClone(Int32, IShape)
Inserts 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 sourceShape.
Public methodInsertClone(Int32, IShape, Single, Single)
Inserts 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 sourceShape.
Public methodInsertClone(Int32, IShape, Single, Single, Single, Single)
Inserts a copy of a specified shape to specified position of the collection.
Public methodInsertConnector(Int32, ShapeType, Single, Single, Single, Single)
Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index.
Public methodInsertConnector(Int32, ShapeType, Single, Single, Single, Single, Boolean)
Creates a new Connector and inserts it to the collection at the specified index.
Public methodInsertGroupShape
Creates 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.
Public methodCode exampleInsertOleObjectFrame(Int32, Single, Single, Single, Single, IOleEmbeddedDataInfo)
Creates a new OLE object and inserts it to a collection at the specified index.
Public methodInsertOleObjectFrame(Int32, Single, Single, Single, Single, String, String)
Creates a new OLE object and inserts it to a collection at the specified index.
Public methodInsertPictureFrame
Creates a new PictureFrame and inserts it to the collection at the specified index.
Public methodCode exampleInsertSectionZoomFrame(Int32, Single, Single, Single, Single, ISection)
Creates a new Section Zoom object and inserts into to a collection at the specified index.
Public methodCode exampleInsertSectionZoomFrame(Int32, Single, Single, Single, Single, ISection, IPPImage)
Creates a new Section Zoom object and inserts it to a collection at the specified index.
Public methodCode exampleInsertSummaryZoomFrame
Creates a new Summary Zoom object and inserts it to a collection at the specified index.
Public methodInsertTable
Creates a new Table and inserts it to the collection at the specified index.
Public methodInsertVideoFrame
Creates a new video frame and inserts it to a collection at the specified index.
Public methodCode exampleInsertZoomFrame(Int32, Single, Single, Single, Single, ISlide)
Creates a new Zoom object and inserts it to a collection at the specified index.
Public methodCode exampleInsertZoomFrame(Int32, Single, Single, Single, Single, ISlide, IPPImage)
Creates a new Zoom object and inserts it to a collection at the specified index.
Public methodRemove
Removes the first occurrence of a specific shape from the collection.
Public methodRemoveAt
Removes the element at the specified index of the collection.
Public methodReorder(Int32, IShape)
Moves a shape from the collection to the specified position.
Public methodReorder(Int32, IShape)
Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.
Public methodToArray
Creates and returns an array with all shapse in it.
Public methodToArray(Int32, Int32)
Creates 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.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also