DesignerRegionCollection.RemoveAt(Int32) 方法

定义

移除集合中指定索引处的 DesignerRegion 对象。

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

参数

index
Int32

要移除的 DesignerRegion 在集合中的从零开始的索引。

例外

index 小于零。

  • 或 - index 大于 Count 属性。

注解

使用 RemoveAt 方法可从集合中移除特定索引处的区域。 若要从集合中删除指定的区域,请使用 Remove 方法。 若要从集合中删除所有区域,请使用 Clear 方法。

备注

从集合中移除项时,集合中的后续项的索引会发生更改。

适用于

另请参阅