RemoveAt

ShapeCollection.RemoveAt method

Rimuovi la forma.

public void RemoveAt(int index)
ParametroTipoDescrizione
indexInt32L’indice della forma.

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);

//rimuovere 
shapes.RemoveAt(0);

Guarda anche