ShapeCollection
Revisión
ShapeCollection Es una clase en Aspose.Slides FOSS para .NET. Heredados de: IShapeCollection.
Representa una colección ordenada, mutable de objetos IShape pertenecentes a un slide o forma de grupo.
Esta clase proporciona 22 métodos para trabajar con los objetos de ShapeCollection en programas .NET. Los métodos disponibles incluyen: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, GetEnumerator, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove,y cuatro métodos adicionales. Todos los miembros públicos están accesibles a cualquier aplicación .NET después de instalar el Aspose.Slides FOSS para el paquete .Net. Propiedades : AsICollection, AsIEnumerable, Count, ParentGroup.
Propiedades
| Nombre | Tipo | Acceso | Descripción |
|---|---|---|---|
ParentGroup | IGroupShape? | Leer | Se encuentra en el grupo de padres. |
AsICollection | IList<IShape> | Leer | Tiene como yo la colección. |
AsIEnumerable | IEnumerable<IShape> | Leer | Tiene lo que yo enumerable. |
Count | int | Leer | Tiene el cuadro. |
Metodología
| firma | Descripción |
|---|---|
ShapeCollection() | Inicia una nueva instancia de la clase ShapeCollection. |
ToArray() | Retorna una sub-rango de formas que comienzan en StartIndex |
ToArray(startIndex: int, count: int) | Chamó ToArray(startIndex, cuenta) en esta instancia ShapeCollection. |
Reorder(index: int, shape: IShape) | Moverse varias formas para comenzar en el índice dado |
Reorder(index: int, shapes: IShape[]) | Chamó Reorder(index, formas) en esta instancia ShapeCollection. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Crea un nuevo AutoShape de la solicitud ShapeType en las coordenadas especificadas y devolve la forma de instancia |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Chamó AddAutoShape(shapeType, x, y, ancho, altura, creeFromTemplate) en este instante ShapeCollection. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Insertar un nuevo AutoShape en el índice, opcional desde un modelo |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Chamó InsertAutoShape(index, formaType, x, y, ancho, altura, creeFromTemplate) en este instante ShapeCollection. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Addique un conector, opcional desde un modelo |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Chamó AddConnector(shapeType, x, y, ancho, altura, creeFromTemplate) en este instante ShapeCollection. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Insertar un conector en el índice dado |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Chamó InsertConnector(index, formaType, x, y, ancho, altura, creeFromTemplate) en este instante ShapeCollection. |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Addique un cuadro de imagen con la imagen suministrada |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Insertar un cuadro de imagen en el índice con la imagen suministrada |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | Addique una tabla en posición con largas columnas especificadas y alturas de línea |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | Insertar una tabla en índice con dimensiones determinadas |
IndexOf(shape: IShape) | Retorna el índice de base cero de la forma especificada |
RemoveAt(index: int) | Elimina la forma en el índice dado |
Remove(shape: IShape) | Remove la forma especificada de la colección |
Clear() | Chamó Clear en esta instancia ShapeCollection. |
GetEnumerator() | Retorna un enumerador para iterar las formas |