Menu.MenuItemCollection.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);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object

要添加到集合中的 MenuItemThe MenuItem to add to the collection.

返回

Int32

插入 MenuItem 的位置。The position into which the MenuItem was inserted.

实现

注解

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

适用于