IShapeCollection — Aspose.Slides FOSS C# (.NET) API Reference
IShapeCollection — IShapeCollection API type. Inherits from: IEnumerable<IShape>.
Package: Aspose.Slides.Foss
Properties
| Property | Type | Access | Description |
|---|---|---|---|
ParentGroup | IGroupShape? | Read/Write | |
AsICollection | IList<IShape> | Read/Write | |
AsIEnumerable | IEnumerable<IShape> | Read/Write | |
Count | int | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
ToArray() | void | An array containing all shapes in the collection. |
ToArray(int startIndex, int count) | void | An array containing the specified range of shapes. |
Reorder(int index, IShape shape) | void | The shape to move. |
Reorder(int index, IShape[] shapes) | void | The shapes to move. |
AddAutoShape(ShapeType shapeType, float x, float y, float width, float height) | void | The created auto shape. |
AddAutoShape(ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate) | void | The created auto shape. |
InsertAutoShape(int index, ShapeType shapeType, float x, float y, float width, float height) | void | The created auto shape. |
InsertAutoShape(int index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate) | void | The created auto shape. |
AddConnector(ShapeType shapeType, float x, float y, float width, float height) | void | The created connector. |
AddConnector(ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate) | void | The created connector. |
InsertConnector(int index, ShapeType shapeType, float x, float y, float width, float height) | void | The created connector. |
InsertConnector(int index, ShapeType shapeType, float x, float y, float width, float height, bool createFromTemplate) | void | The created connector. |
AddPictureFrame(ShapeType shapeType, float x, float y, float width, float height, IPPImage image) | void | The created picture frame. |
InsertPictureFrame(int index, ShapeType shapeType, float x, float y, float width, float height, IPPImage image) | void | The created picture frame. |
AddTable(float x, float y, double[] columnWidths, double[] rowHeights) | void | The created table. |
InsertTable(int index, float x, float y, double[] columnWidths, double[] rowHeights) | void | The created table. |
IndexOf(IShape shape) | void | The zero-based index, or -1 if the shape is not in the collection. |
RemoveAt(int index) | void | The zero-based index of the shape to remove. |
Remove(IShape shape) | void | The shape to remove. |
Clear() | void |