IShapeCollection
Overview
IShapeCollection is a interface in Aspose.Slides FOSS for Java.
Represents a collection of shapes.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
parentGroup | IGroupShape | Read | Gets the parent group shape for this collection, or {@code null} if this |
| collection belongs directly to a slide. |
Methods
| Signature | Description |
|---|---|
getParentGroup() → IGroupShape | Gets the parent group shape for this collection, or {@code null} if this |
| collection belongs directly to a slide. | |
asICollection() → List<IShape> | Returns this collection as an unmodifiable {@link List}. |
asIEnumerable() → Iterable<IShape> | Returns this collection as an {@link Iterable}. |
get(index: int) → IShape | Gets the shape at the specified index. |
size() → int | Returns the number of shapes in the collection. |
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double) → IAutoShape | Creates a new AutoShape and adds it to the collection. |
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShape | Creates a new AutoShape and adds it to the collection. |
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double) → IAutoShape | Creates a new AutoShape and inserts it at the specified index. |
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IAutoShape | Creates a new AutoShape and inserts it at the specified index. |
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double) → IConnector | Adds a connector to the collection. |
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnector | Adds a connector to the collection. |
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double) → IConnector | Creates a connector and inserts it at the specified index. |
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean) → IConnector | Creates a connector and inserts it at the specified index. |
addPictureFrame(shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrame | Adds a picture frame to the collection. |
insertPictureFrame(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage) → IPictureFrame | Creates a picture frame and inserts it at the specified index. |
addTable(x: double, y: double, colWidths: double[], rowHeights: double[]) → ITable | Adds a table to the collection. |
insertTable(index: int, x: double, y: double, colWidths: double[], rowHeights: double[]) → ITable | Creates a table and inserts it at the specified index. |
indexOf(shape: IShape) → int | Returns the index of the specified shape. |
toArray() → IShape[] | Returns all shapes as an array. |
toArray(startIndex: int, count: int) → IShape[] | Returns a range of shapes as an array. |
reorder(index: int, shape: IShape) | Moves a shape to the specified position. |
reorder(index: int, shapes: IShape[]) | Moves multiple shapes to the specified position. |
removeAt(index: int) | Removes the shape at the specified index. |
remove(shape: IShape) | Removes the specified shape from the collection. |
clear() | Removes all shapes from the collection. |