BindingList<T>.RemoveItem(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拿掉位於指定索引處的專案。
protected:
override void RemoveItem(int index);
protected override void RemoveItem(int index);
override this.RemoveItem : int -> unit
Protected Overrides Sub RemoveItem (index As Integer)
參數
- index
- Int32
要移除的項目的零基指數。
例外狀況
你移除了一個新加入的項目,設定 AllowRemove 為 false。
備註
此方法提出 ListChanged 型態 ItemDeleted為 的事件。