RemoveAt

ShapeCollection.RemoveAt method

移除形状。

public void RemoveAt(int index)
范围类型描述
indexInt32形状的索引。

例子


[C#]
//添加第一个形状
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//添加第二个形状
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

//消除 
shapes.RemoveAt(0);

也可以看看