語言

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 方法。

Note

當你從收藏中移除項目時,收藏中後續項目的索引也會改變。

適用於

另請參閱