IMenuItemCollection 接口
表示在 ProjectItemMenuItemsRequested 事件处理程序中动态添加的菜单项的集合。
命名空间: Microsoft.VisualStudio.SharePoint
程序集: Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
Public Interface IMenuItemCollection _
Inherits IEnumerable(Of IMenuItem), IEnumerable
public interface IMenuItemCollection : IEnumerable<IMenuItem>,
IEnumerable
方法
名称 | 说明 | |
---|---|---|
Add(String) | 用指定的文本创建并添加新的菜单项实例。 | |
Add(String, Int32) | 用指定的文本和排序顺序创建并添加新的菜单项实例。 | |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable<IMenuItem>。) | |
GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) |
页首