ListBox.SelectedIndexCollection.IList.Add(Object) 方法

定义

有关此成员的说明,请参见 Add(Object)For a description of this member, see Add(Object).

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object

要添加到集合中的索引。The index to add to the collection.

返回

插入索引的位置。The position into which the index was inserted.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ListBox.SelectedIndexCollection 实例被强制转换为 IList 接口时使用。It can be used only when the ListBox.SelectedIndexCollection instance is cast to an IList interface.

不能直接更改 ListBox.SelectedIndexCollection 类。You cannot change the ListBox.SelectedIndexCollection class directly. 若要将项添加到 ListBox.SelectedIndexCollection,请使用 @no__t 属性或 SetSelected 方法。To add an item to the ListBox.SelectedIndexCollection, use the SelectedIndex property or the SetSelected method.

适用于