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):
    ...
ParametroTipoDescrizione
typeAutoShapeTypeTipo di forma automatica.
upper_left_rowintIndice della riga in alto a sinistra.
topintRappresenta l’offset verticale di Shape dalla riga sinistra, in unità di pixel.
upper_left_columnintIndice colonna in alto a sinistra.
leftintRappresenta l’offset orizzontale di Shape dalla colonna di sinistra, in unità di pixel.
heightintRappresenta l’altezza di Shape, in unità di pixel.
widthintRappresenta 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