ShapeCollection
Overzicht
ShapeCollection is een klasse in Aspose.Slides FOSS voor .NET. Erft van: IShapeCollection.
Stelt een geordende, wijzigbare collectie van IShape objecten voor die behoren tot een dia of groepsvorm.
Deze klasse biedt 22 methoden voor het werken met ShapeCollection objecten in .NET programma’s. Beschikbare methoden zijn: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, GetEnumerator, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove, en 4 extra methoden. Alle openbare leden zijn toegankelijk voor elke .NET toepassing na het installeren van het Aspose.Slides FOSS voor .NET pakket. Eigenschappen: AsICollection, AsIEnumerable, Count, ParentGroup.
Eigenschappen
| Naam | Type | Toegang | Beschrijving |
|---|---|---|---|
ParentGroup | IGroupShape? | Lezen | Haalt de bovenliggende groep op. |
AsICollection | IList<IShape> | Lezen | Haalt de as i-collectie op. |
AsIEnumerable | IEnumerable<IShape> | Lezen | Haalt de collectie op als een IEnumerable. |
Count | int | Lezen | Haalt het aantal op. |
Methoden
| Handtekening | Beschrijving |
|---|---|
ShapeCollection() | Initialiseert een nieuwe instantie van de ShapeCollection klasse. |
ToArray() | Retourneert een sub‑array van vormen die begint bij startIndex |
ToArray(startIndex: int, count: int) | Roept ToArray(startIndex, count) aan op deze ShapeCollection instantie. |
Reorder(index: int, shape: IShape) | Verplaatst meerdere vormen zodat ze beginnen op de opgegeven index |
Reorder(index: int, shapes: IShape[]) | Roept Reorder(index, shapes) aan op deze ShapeCollection instantie. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Maakt een nieuwe AutoShape van de aangevraagde ShapeType op de opgegeven coördinaten aan en retourneert de shape instance |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Roept AddAutoShape(shapeType, x, y, width, height, createFromTemplate) aan op deze ShapeCollection instantie. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Voegt een nieuwe AutoShape toe bij index, optioneel vanuit een template |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Roept InsertAutoShape(index, shapeType, x, y, width, height, createFromTemplate) aan op deze ShapeCollection instantie. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Voegt een connector toe, optioneel vanuit een template |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Roept AddConnector(shapeType, x, y, width, height, createFromTemplate) aan op deze ShapeCollection instantie. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Voegt een connector toe op de opgegeven index |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Roept InsertConnector(index, shapeType, x, y, width, height, createFromTemplate) aan op deze ShapeCollection instantie. |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Voegt een afbeeldingframe toe met de meegeleverde afbeelding |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Voegt een afbeeldingframe toe op index met de meegeleverde afbeelding |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | Voegt een tabel toe op positie met opgegeven kolombreedtes en rijhoogtes |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | Voegt een tabel in op index met gegeven afmetingen |
IndexOf(shape: IShape) | Retourneert de nul‑gebaseerde index van de opgegeven vorm |
RemoveAt(index: int) | Verwijdert de vorm op de opgegeven index |
Remove(shape: IShape) | Verwijdert de opgegeven vorm uit de collectie |
Clear() | Roept Clear aan op deze ShapeCollection instantie. |
GetEnumerator() | Retourneert een enumerator voor het itereren over de vormen. |