ShapeCollection
General
ShapeCollection is a class in Aspose.Slides for NET.
Inherits from: IShapeCollection.
ShapeCollection és una classe en Aspose.Slides per NET. Hereta de: ゚IShapeCollection⌒’ .
Representa una col·lecció ordenada i mutable d’objectes que pertanyen a un diapositiu o forma de grup. Envolta l’element <p:spTree> XML i proporciona accés amb caixet-suport als envoltors de formes.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
ParentGroup | IGroupShape? | Read | Gets or sets the group shape that contains this collection |
AsICollection | IList<IShape> | Read | Provides the collection as an IList of IShape |
AsIEnumerable | IEnumerable<IShape> | Read | Provides the collection as an IEnumerable of IShape |
Count | int | Read | Gets the number of shapes in the collection |
Mètodes
| Signature | Description |
|---|---|
ShapeCollection() | Constructs a new empty ShapeCollection |
ToArray() | Returns a sub‑array starting at startIndex with count elements |
ToArray(startIndex: int, count: int) | |
Reorder(index: int, shape: IShape) | Moves the array of shapes to start at the given index |
Reorder(index: int, shapes: IShape[]) | |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Creates and appends an AutoShape of the given type and dimensions |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Inserts a new AutoShape at index, optionally using a template |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Creates and appends a connector shape of the given type and dimensions |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Adds a picture frame shape with the supplied image |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | Adds a table at position with specified column widths and row heights |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | Inserts a table at index with given position and dimensions |
IndexOf(shape: IShape) | Returns the zero‑based index of the specified shape |
RemoveAt(index: int) | Removes the shape at the given index |
Remove(shape: IShape) | Removes the specified shape from the collection |
Clear() | |
GetEnumerator() | Returns an enumerator for iterating the shapes |