IShapeCollection

IShapeCollection — Aspose.Slides FOSS Java API Reference

IShapeCollection — Represents a collection of shapes.

Package: org.aspose.slides.foss


Properties

PropertyTypeAccessDescription
parentGroupIGroupShapeRead/Write

Methods

MethodReturnsDescription
getParentGroup()IGroupShapeGets 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)IShapeGets the shape at the specified index.
size()intReturns the number of shapes in the collection.
addAutoShape(ShapeType shapeType, double x, double y, double width, double height)IAutoShapeCreates a new AutoShape and adds it to the collection.
addAutoShape(ShapeType shapeType, double x, double y, double width, double height, boolean createFromTemplate)IAutoShapeCreates a new AutoShape and adds it to the collection.
insertAutoShape(int index, ShapeType shapeType, double x, double y, double width, double height)IAutoShapeCreates 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)IAutoShapeCreates a new AutoShape and inserts it at the specified index.
addConnector(ShapeType shapeType, double x, double y, double width, double height)IConnectorAdds a connector to the collection.
addConnector(ShapeType shapeType, double x, double y, double width, double height, boolean createFromTemplate)IConnectorAdds a connector to the collection.
insertConnector(int index, ShapeType shapeType, double x, double y, double width, double height)IConnectorCreates a connector and inserts it at the specified index.
insertConnector(int index, ShapeType shapeType, double x, double y, double width, double height, boolean createFromTemplate)IConnectorCreates a connector and inserts it at the specified index.
addPictureFrame(ShapeType shapeType, double x, double y, double width, double height, IPPImage image)IPictureFrameAdds a picture frame to the collection.
insertPictureFrame(int index, ShapeType shapeType, double x, double y, double width, double height, IPPImage image)IPictureFrameCreates a picture frame and inserts it at the specified index.
addTable(double x, double y, double[] colWidths, double[] rowHeights)ITableAdds a table to the collection.
insertTable(int index, double x, double y, double[] colWidths, double[] rowHeights)ITableCreates a table and inserts it at the specified index.
indexOf(IShape shape)intReturns 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)voidMoves a shape to the specified position.
reorder(int index, IShape[] shapes)voidMoves multiple shapes to the specified position.
removeAt(int index)voidRemoves the shape at the specified index.
remove(IShape shape)voidRemoves the specified shape from the collection.
clear()voidRemoves all shapes from the collection.

See Also