ShellContextMenuProvider Class |
Namespace: Jam.Shell
The ShellContextMenuProvider type exposes the following members.
Name | Description | |
---|---|---|
![]() | ShellContextMenuProvider(ItemIdList) | Creates a context menu for the passed ItemIdList. |
![]() | ShellContextMenuProvider(JamItemIdListCollection) |
Creates a context menu for the passed JamItemIdListCollection.
|
Name | Description | |
---|---|---|
![]() | AsyncOperation | Gets or sets a value indicating whether context menu operations are executed asynchronously. (Inherited from Win32ShellContextMenuProvider.) |
![]() | CustomMenuStrip | Sets the custom menu strip. |
![]() | ShellMenuStartsAt | Gets or sets a position of the first item of the shell menu. (Inherited from Win32ShellContextMenuProvider.) |
![]() | ShowShellContextMenuOnTop |
Defines the order of ShellContextMenu and CustomMenuStrip.
|
![]() | SourceItems | Gets or sets source items. (Inherited from Win32ShellContextMenuProvider.) |
Name | Description | |
---|---|---|
![]() | CreatePopupMenu | Creates popup menu. (Overrides Win32ShellContextMenuProviderCreatePopupMenu.) |
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | Dispose(Boolean) | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | ExecuteCommand(ShellCommand) | Executes the command operation on the SourceItems . (Inherited from Win32ShellContextMenuProvider.) |
![]() | ExecuteCommand(ShellContextMenuCommand) | Obsolete.
Executes the command operation on the SourceItems.
(Inherited from Win32ShellContextMenuProvider.) |
![]() | HandleMenuItem | Handles the menu item described by pCommandId. (Overrides Win32ShellContextMenuProviderHandleMenuItem(Int32).) |
![]() | OnAfterCommandExecute | Executes the AfterCommandExecute event. (Inherited from Win32ShellContextMenuProvider.) |
![]() | OnBeforeCommandExecute | Executes the BeforeCommandExecute event. (Inherited from Win32ShellContextMenuProvider.) |
![]() | OnRenameItemSelected |
Fires the RenameItemSelected event
(Inherited from Win32ShellContextMenuProvider.) |
![]() | Release | Releases this object. (Inherited from Win32ShellContextMenuProvider.) |
![]() | ShowContextMenu |
Shows the context menu at the specified location and executes the menu item the user has
chosen.
(Inherited from Win32ShellContextMenuProvider.) |
Name | Description | |
---|---|---|
![]() | AfterCommandExecute |
This event is fired after a command that was selected from the context menu or passed to
ExecuteCommand(ShellContextMenuCommand) is processed.
(Inherited from Win32ShellContextMenuProvider.) |
![]() | BeforeCommandExecute |
This event is fired before a command that was selected from the context menu or passed to
ExecuteCommand(ShellContextMenuCommand) is processed.
(Inherited from Win32ShellContextMenuProvider.) |
![]() | RenameItemSelected |
This event is fired when the context menu option "Rename" is selected from the context menu or passed to ExecuteCommand(ShellContextMenuCommand).
(Inherited from Win32ShellContextMenuProvider.) |
using (ShellContextMenuProvider lContextMenu = new ShellContextMenuProvider(new ItemIdList(@"c:\windows"))) { lContextMenu.ShowContextMenu(100, 100, ShellContextMenuOptions.Extended); }
shellListView1.InvokeCommandOnSelected(ShellCommand.Copy); //Copies the selected items to clipboard. using (ShellContextMenuProvider lContextMenu = new ShellContextMenuProvider(new ItemIdList(@"d:\backup"))) { lContextMenu.ExecuteCommand(ShellCommand.Paste); //pastes the files into d:\backup. }