語言

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

定義

關於此成員的描述,請參見 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);
void IList.Insert(int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

應插入該值的索引。

value
Object

要加入到 的 CheckedListBox.CheckedIndexCollection物件。

實作

例外狀況

總是被拋出。

備註

你不能直接更換 CheckedListBox.CheckedIndexCollection 職業。 要將項目加入 CheckedListBox.CheckedIndexCollection,請使用 SetItemChecked 或方法 SetItemCheckState 。

適用於