MenuCommandsService 类

定义

public ref class MenuCommandsService : System::Collections::CollectionBase, IDisposable, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget, System::ComponentModel::Design::IMenuCommandService
public class MenuCommandsService : System.Collections.CollectionBase, IDisposable, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget, System.ComponentModel.Design.IMenuCommandService
type MenuCommandsService = class
    inherit CollectionBase
    interface IDisposable
    interface IMenuCommandService
    interface IOleCommandTarget
Public Class MenuCommandsService
Inherits CollectionBase
Implements IDisposable, IMenuCommandService, IOleCommandTarget
继承
MenuCommandsService
实现

构造函数

MenuCommandsService()
MenuCommandsService(MenuCommand[])
MenuCommandsService(MenuCommandsService)
MenuCommandsService(ServiceProvider)

字段

m_cachedServiceProvider

属性

Item[Int32]

方法

Add(MenuCommand)
AddCommand(MenuCommand)
AddRange(MenuCommand[])
AddRange(MenuCommandsService)
Contains(MenuCommand)
CopyTo(MenuCommand[], Int32)
Dispose()
Exec(Guid, UInt32, UInt32, IntPtr, IntPtr)
FindCommand(CommandID)
GlobalInvoke(CommandID)
IndexOf(MenuCommand)
Insert(Int32, MenuCommand)
QueryStatus(Guid, UInt32, OLECMD[], IntPtr)
Remove(MenuCommand)
RemoveCommand(MenuCommand)
ShowContextMenu(CommandID, Int32, Int32)
ShowContextMenu(ServiceProvider, CommandID)
ShowContextMenu(ServiceProvider, CommandID, Int32, Int32)

显式接口实现

IMenuCommandService.AddVerb(DesignerVerb)
IMenuCommandService.RemoveVerb(DesignerVerb)
IMenuCommandService.Verbs

适用于