CheckedListBox.CheckedIndexCollection.IList.Insert(Int32, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
有关此成员的说明,请参阅 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 方法。