metodo add_auto_shape
add_auto_shape(type, upper_left_row, top, upper_left_column, left, height, width)
Aggiunge una forma al foglio di lavoro.
ritorna
Un oggetto Forma.
def add_auto_shape(self, type, upper_left_row, top, upper_left_column, left, height, width):
...
Parametro | Tipo | Descrizione |
---|---|---|
type | AutoShapeType | Tipo di forma automatica. |
upper_left_row | int | Indice della riga in alto a sinistra. |
top | int | Rappresenta l’offset verticale di Shape dalla riga sinistra, in unità di pixel. |
upper_left_column | int | Indice colonna in alto a sinistra. |
left | int | Rappresenta l’offset orizzontale di Shape dalla colonna di sinistra, in unità di pixel. |
height | int | Rappresenta l’altezza di Shape, in unità di pixel. |
width | int | Rappresenta la larghezza di Shape, in unità di pixel. |
Osservazioni
Il tipo non può essere Chart/Comment/Picture/OleObject/Polygon/DialogBox
Esempio
from aspose.cells.drawing import AutoShapeType
# Adds a AutoShape to the worksheet.
autoShape = shapes.add_auto_shape(AutoShapeType.CUBE, 1, 0, 1, 0, 100, 50)
Guarda anche
- modulo aspose.cells.drawing
- classe ShapeCollection