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