add_auto_shape méthode

add_auto_shape(type, upper_left_row, top, upper_left_column, left, height, width)

Ajoute une forme automatique à la feuille de calcul.

Retour

Un objet Shape.

def add_auto_shape(self, type, upper_left_row, top, upper_left_column, left, height, width):
    ...
Paramètre Taper Description
type AutoShapeType Type de forme automatique.
upper_left_row int Index de ligne en haut à gauche.
top int Représente le décalage vertical de Shape par rapport à sa ligne de gauche, en pixels.
upper_left_column int Index de la colonne en haut à gauche.
left int Représente le décalage horizontal de Shape par rapport à sa colonne de gauche, en pixels.
height int Représente la hauteur de Shape, en unité de pixel.
width int Représente la largeur de Shape, en unité de pixel.

Remarques

Le type ne peut pas être Chart/Comment/Picture/OleObject/Polygon/DialogBox

Exemple

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)

Voir également