IShapeCollection

General

IShapeCollection és una interfície en Aspose.Slides FOSS per Java.

Representa una col·lecció de formes.

Propietats

NameTypeAccessDescription
parentGroupIGroupShapeReadGets the IGroupShape that contains this collection, or null if none

Mètodes

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