IShapeCollection
Vue de l’ensemble
‘IShapeCollection’ est une interface dans Aspose.Slides FOSS pour Java.
Il représente une collection de formes.
Cette interface fournit 25 méthodes pour travailler avec les objets IShapeCollection dans les programmes Java. Les méthodologies disponibles comprennent: addAutoShapé, adConnector , addPictureFrame ; adTable; asICollection : asIEnumerable ́ ; ‘clearetget .getParentGroup.indexOf. insertAutoshape.insertConnettor. et 7 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspoe.Slides FOSS pour le package Java . Propriétés : parent Group.
Propriétés
| 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. |
méthodes
| 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. |
Voir aussi
- Aspose.Slides - référence API d’entreprise