Remove
ShapeCollection.Remove method
Rimuovi la forma.
public void Remove(Shape shape)
Parametro | Tipo | Descrizione |
---|---|---|
shape | Shape |
Esempi
[C#]
//aggiungi la prima forma
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//aggiungi la seconda forma
shapes.AddRectangle(6, 0, 2, 0, 30, 30);
//ottengo la forma
Shape s = shapes["Rectangle 1"];// o forme[0];
if (s != null)
{
//rimuovere
shapes.Remove(s);
}
Guarda anche
- class Shape
- class ShapeCollection
- spazio dei nomi Aspose.Cells.Drawing
- assemblea Aspose.Cells