IShapeCollection

General

IShapeCollection és una interfície en Aspose.Slides per a NET. Hereta de: ゚IEnumerable⌒ .

Representa una col·lecció ordenada i mutable d’objectes que pertanyen a un diapositiu o forma de grup.

Propietats

NameTypeAccessDescription
ParentGroupIGroupShape?ReadGets the group shape that contains this collection, if any
AsICollectionIList<IShape>ReadProvides the shapes as an IList for collection‑style access
AsIEnumerableIEnumerable<IShape>ReadProvides the shapes as an IEnumerable for iteration
CountintReadReturns the number of shapes in the collection

Mètodes

SignatureDescription
ToArray()An array containing all shapes in the collection.
ToArray(startIndex: int, count: int)An array containing the specified range of shapes.
Reorder(index: int, shape: IShape)The shape to move.
Reorder(index: int, shapes: IShape[])The shapes to move.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float)The created auto shape.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)The created auto shape.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)The created auto shape.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)The created auto shape.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float)The created connector.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)The created connector.
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)The created connector.
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)The created connector.
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)The created picture frame.
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)The created picture frame.
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[])The created table.
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[])The created table.
IndexOf(shape: IShape)The zero-based index, or -1 if the shape is not in the collection.
RemoveAt(index: int)The zero-based index of the shape to remove.
Remove(shape: IShape)The shape to remove.
Clear()Removes all shapes from the collection
 Català