IShapeCollection
Overview
IShapeCollection is a interface in Aspose.Slides FOSS for .NET.
Inherits from: IEnumerable<IShape>.
Represents an ordered, mutable collection of objects belonging to a slide or group shape.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ParentGroup | IGroupShape? | Read | Gets the group shape that contains this collection, if any |
AsICollection | IList<IShape> | Read | Provides the shapes as an IList |
AsIEnumerable | IEnumerable<IShape> | Read | Provides the shapes as an IEnumerable |
Count | int | Read | Gets the number of shapes in the collection |
Methods
| Signature | Description |
|---|---|
ToArray() | An array containing all shapes in the collection. |
ToArray(startIndex: int, count: int) | An array containing the specified range of shapes. |
Reorder(index: int, shape: IShape) | The shape to move. |
Reorder(index: int, shapes: IShape[]) | The shapes to move. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | The created auto shape. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | The created auto shape. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | The created auto shape. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | The created auto shape. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | The created connector. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | The created connector. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | The created connector. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | The created connector. |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | The created picture frame. |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | The created picture frame. |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | The created table. |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | The created table. |
IndexOf(shape: IShape) | The zero-based index, or -1 if the shape is not in the collection. |
RemoveAt(index: int) | The zero-based index of the shape to remove. |
Remove(shape: IShape) | The shape to remove. |
Clear() | Removes all shapes from the collection |