ShapeCollection

ShapeCollection class

Represents a collection of a shapes.

public sealed class ShapeCollection : DomObject<GroupShape>, IShapeCollection

Properties

NameDescription
Count { get; }Gets the number of elements actually contained in the collection. Read-only Int32.
IsSynchronized { get; }Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Item { get; }Gets the element at the specified index. Read-only IShape.
ParentGroup { get; }Returns parent GroupShape object for a shapes collection. Read-only IGroupShape.
SyncRoot { get; }Returns a synchronization root. Read-only Object.

Methods

NameDescription
AddAudioFrameCD(float, float, float, float)Adds an AudioFrame with CD to the end of collection.
AddAudioFrameEmbedded(float, float, float, float, IAudio)Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list.
AddAudioFrameEmbedded(float, float, float, float, 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.
AddAudioFrameLinked(float, float, float, float, string)Adds a new audio frame with linked audio file to the end of a collection.
AddAutoShape(ShapeType, float, float, float, float)Creates a new AutoShape, tunes it from default template and adds it to the end of the collection.
AddAutoShape(ShapeType, float, float, float, float, bool)Creates a new AutoShape and adds it to the end of the collection.
AddChart(ChartType, float, float, float, float)Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection.
AddChart(ChartType, float, float, float, float, bool)Creates a new Chart and adds it to the end of the collection.
AddClone(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.
AddClone(IShape, float, float)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.
AddClone(IShape, float, float, float, float)Adds a copy of a specified shape to the end of the collection.
AddConnector(ShapeType, float, float, float, float)Creates a new Connector, tunes it from default template and adds it to the end of the collection.
AddConnector(ShapeType, float, float, float, float, bool)Creates a new Connector and adds it to the end of the collection.
AddGroupShape()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.
AddGroupShape(ISvgImage, float, float, float, float)Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection.
AddMathShape(float, float, float, float)Creates a new Autoshape tuned from default template to math content and adds it to the end of the collection.
AddOleObjectFrame(float, float, float, float, IOleEmbeddedDataInfo)Adds a new OLE object to the end of a collection.
AddOleObjectFrame(float, float, float, float, string, string)Adds a new OLE object to the end of a collection.
AddPictureFrame(ShapeType, float, float, float, float, IPPImage)Creates a new PictureFrame and adds it to the end of the collection.
AddSectionZoomFrame(float, float, float, float, ISection)Adds a new Section Zoom object to the end of a collection.
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)Adds a new Section Zoom object to the end of a collection with a predefined image.
AddSmartArt(float, float, float, float, SmartArtLayoutType)Add SmartArt diagram.
AddSummaryZoomFrame(float, float, float, float)Adds a new Summary Zoom object to the end of a collection.
AddTable(float, float, double[], double[])Creates a new Table and adds it to the end of the collection.
AddVideoFrame(float, float, float, float, IVideo)Adds a new video frame to the end of a collection.
AddVideoFrame(float, float, float, float, string)Adds a new video frame to the end of a collection.
AddZoomFrame(float, float, float, float, ISlide)Adds a new Zoom object to the end of a collection.
AddZoomFrame(float, float, float, float, ISlide, IPPImage)Adds a new Zoom object to the end of a collection.
Clear()Removes all shapes from the collection.
CopyTo(Array, int)Copies all elements from the collection to the specified array.
GetEnumerator()Returns an enumerator that iterates through the collection.
IndexOf(IShape)Returns the zero-based index of the first occurrence of a shape in the collection.
InsertAudioFrameCD(int, float, float, float, float)Insert an AudioFrame with CD.
InsertAudioFrameEmbedded(int, float, float, float, float, IAudio)Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.
InsertAudioFrameEmbedded(int, float, float, float, float, Stream)Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only.
InsertAudioFrameLinked(int, float, float, float, float, string)Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.
InsertAutoShape(int, ShapeType, float, float, float, float)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.
InsertAutoShape(int, ShapeType, float, float, float, float, bool)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.
InsertChart(ChartType, float, float, float, float, int)Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection.
InsertChart(ChartType, float, float, float, float, int, bool)Creates a new Chart and inserts it to the specified position in the collection.
InsertClone(int, 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.
InsertClone(int, IShape, float, float)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.
InsertClone(int, IShape, float, float, float, float)Inserts a copy of a specified shape to specified position of the collection.
InsertConnector(int, ShapeType, float, float, float, float)Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index.
InsertConnector(int, ShapeType, float, float, float, float, bool)Creates a new Connector and inserts it to the collection at the specified index.
InsertGroupShape(int)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.
InsertOleObjectFrame(int, float, float, float, float, IOleEmbeddedDataInfo)Creates a new OLE object and inserts it to a collection at the specified index.
InsertOleObjectFrame(int, float, float, float, float, string, string)Creates a new OLE object and inserts it to a collection at the specified index.
InsertPictureFrame(int, ShapeType, float, float, float, float, IPPImage)Creates a new PictureFrame and inserts it to the collection at the specified index.
InsertSectionZoomFrame(int, float, float, float, float, ISection)Creates a new Section Zoom object and inserts into to a collection at the specified index.
InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)Creates a new Section Zoom object and inserts it to a collection at the specified index.
InsertSummaryZoomFrame(int, float, float, float, float)Creates a new Summary Zoom object and inserts it to a collection at the specified index.
InsertTable(int, float, float, double[], double[])Creates a new Table and inserts it to the collection at the specified index.
InsertVideoFrame(int, float, float, float, float, string)Creates a new video frame and inserts it to a collection at the specified index.
InsertZoomFrame(int, float, float, float, float, ISlide)Creates a new Zoom object and inserts it to a collection at the specified index.
InsertZoomFrame(int, float, float, float, float, ISlide, IPPImage)Creates a new Zoom object and inserts it to a collection at the specified index.
Remove(IShape)Removes the first occurrence of a specific shape from the collection.
RemoveAt(int)Removes the element at the specified index of the collection.
Reorder(int, IShape)Moves a shape from the collection to the specified position.
Reorder(int, params IShape[])Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.
ToArray()Creates and returns an array with all shapse in it.
ToArray(int, int)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.

See Also