ToolStripItemCollection.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中指定的索引中移除一個項目。
public:
void RemoveAt(int index);
public void RemoveAt(int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
參數
- index
- Int32
移除的指標值 ToolStripItem 。
例外狀況
備註
當 a ToolStripItem 從 中移除 ToolStripItemCollection時,所有後續控制項會在集合中往上移動一位。
你也可以用這個ToolStripItem方法移除 aRemove,或是用這個Clear方法移除所有控制項。
要新增 ToolStripItem 物件到集合中,請使用 Add or AddRange 方法。