CheckedListBox.CheckedIndexCollection.IList.Insert(Int32, Object) 方法

定義

如需這個成員的說明,請參閱 Insert(Int32, Object)For a description of this member, see Insert(Int32, Object).

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

應該插入值的索引。The index at which value should be inserted.

value
Object

要加入 CheckedListBox.CheckedIndexCollection 的物件。The object to be added to the CheckedListBox.CheckedIndexCollection.

實作

例外狀況

一律擲回。Always thrown.

備註

您無法直接變更 CheckedListBox.CheckedIndexCollection 類別。You cannot change the CheckedListBox.CheckedIndexCollection class directly. 若要將專案加入至 CheckedListBox.CheckedIndexCollection,請使用 SetItemCheckedSetItemCheckState 方法。To add an item to the CheckedListBox.CheckedIndexCollection, use the SetItemChecked or SetItemCheckState method.

適用於