delete_shape Methode
delete_shape(self, shape)
Löschen Sie eine Form. Wenn die Form zur Gruppe gehört oder eine Kommentarform ist, wird sie nicht gelöscht.
def delete_shape(self, shape):
...
| Parameter | Typ | Beschreibung |
|---|---|---|
| shape | Shape |
Beispiel
# add first shape
firstShape = shapes.add_rectangle(2, 0, 2, 0, 50, 50)
# add second shape
secondShape = shapes.add_rectangle(6, 0, 2, 0, 30, 30)
# del
shapes.delete_shape(firstShape)
Siehe auch
- Modul
aspose.cells.drawing - Klasse
ShapeCollection