CommandSetLibrary Class
Base class for CommandSet and ClipboardCommandSet. Provides access to current selection, diagram, windows and services.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
System::MarshalByRefObject
Microsoft.VisualStudio.Modeling.Shell::CommandSetLibrary
Microsoft.VisualStudio.Modeling.Shell::ClipboardCommandSet
Microsoft.VisualStudio.Modeling.Shell::CommandSet
| Name | Description | |
|---|---|---|
![]() | CommandSetLibrary(IServiceProvider^) | Creates a new CommandSetLibrary. |
| Name | Description | |
|---|---|---|
![]() | CanDeleteSelectedItems() | Returns true if the selected items can be deleted. |
![]() | CreateObjRef(Type^) | (Inherited from MarshalByRefObject.) |
![]() | DeleteSelectedItems(String^) | Delete the selected items. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetLifetimeService() | (Inherited from MarshalByRefObject.) |
![]() | GetMenuCommands() | Defines the list of menu commands that this CommandSet implements. |
![]() | GetType() | (Inherited from Object.) |
![]() | Initialize() | Initialize the command set. Calls GetMenuCommands and caches the result. |
![]() | InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
![]() | IsAnyDocumentSelectionCompartment() | True if any of the items in the selection list is a compartment. |
![]() | IsAnyDocumentSelectionMoveableHostShape() | True if any of the items in the selection list is a moveable host shape, which cannot be deleted. |
![]() | IsAnyDocumentSelectionUndeletable() | True if any of the shape items in the selection list cannot be deleted. |
![]() | IsCurrentDiagramEmpty() | True if the diagram has no children. |
![]() | IsDiagramSelected() | True if the diagram is selected. |
![]() | IsSingleDocumentSelection() | True if there is only one selected item on the active document. |
![]() | IsSingleSelection() | True if there is only one selected item on the active document window or tool window. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
![]() | ToString() | (Inherited from Object.) |
For more information, see How to: Add a Command to the Shortcut Menu.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


