ClipboardCommandSet Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
ClipboardCommandSet to support cut/copy/paste operation.
public ref class ClipboardCommandSet abstract : Microsoft::VisualStudio::Modeling::Shell::CommandSetLibrary
[System.CLSCompliant(false)]
public abstract class ClipboardCommandSet : Microsoft.VisualStudio.Modeling.Shell.CommandSetLibrary
public abstract class ClipboardCommandSet : Microsoft.VisualStudio.Modeling.Shell.CommandSetLibrary
[<System.CLSCompliant(false)>]
type ClipboardCommandSet = class
inherit CommandSetLibrary
type ClipboardCommandSet = class
inherit CommandSetLibrary
Public MustInherit Class ClipboardCommandSet
Inherits CommandSetLibrary
- Inheritance
- Attributes
Clipboard |
Creates a new CommandSet |
Create |
Returns desired preference (FavorClarityOverSmallSize/FavorSmallSizeOverClarity) for bitmap creation. Default is FavorSmallSizeOverClarity |
Current |
Currently focused document (Inherited from CommandSetLibrary) |
Current |
Returns the collection of selected elements in the active document window. (Inherited from CommandSetLibrary) |
Current |
Currently focused document view (Inherited from CommandSetLibrary) |
Current |
Returns the collection of selected elements in the active window. This could be a document window or tool window. (Inherited from CommandSetLibrary) |
Element |
Returns ElementOperations associated with this ClipboardCommandSet. If |
Menu |
Menu command service used to manage command handlers. (Inherited from CommandSetLibrary) |
Monitor |
Service used to track selection in the Visual Studio shell. (Inherited from CommandSetLibrary) |
Selected |
Returns the current selected set of model elements (not shapes) |
Service |
Service provider used to retrieve Visual Studio services. (Inherited from CommandSetLibrary) |
Single |
Returns the primary selected object in the active document window. (Inherited from CommandSetLibrary) |
Single |
Returns the primary selected object in active window. This could be a document window or tool window. (Inherited from CommandSetLibrary) |
Target |
Returns the first element of the selection. |
Can |
Determine whether selected item can be deleted or not (Inherited from CommandSetLibrary) |
Copy |
Copies the collection of ModelElements to the specified IDataObject |
Create |
Returns bitmap for staged into the clipboard. |
Create |
For the given shapes, this method to create enhanced meta file for the Clipboard. If you do not want enhanced meta file to be in the clipboard, override this method and return null. |
Delete |
Protected method to delete selected items (Inherited from CommandSetLibrary) |
Get |
Provide the menu commands that this commandset implements (Inherited from CommandSetLibrary) |
Initialize() |
Initialize the command set (Inherited from CommandSetLibrary) |
Initialize |
(Inherited from CommandSetLibrary) |
Is |
Returns whether any of the items in the selection list is a compartment. (Inherited from CommandSetLibrary) |
Is |
Returns whether any of the items in the selection list is a moveable host shape, which cannot be deleted. (Inherited from CommandSetLibrary) |
Is |
Returns whether any of the shape items in the selection list cannot be deleted. Base implementation checks for Compartment and MoveableHostShape shapes. (Inherited from CommandSetLibrary) |
Is |
Returns true if diagram has no children. (Inherited from CommandSetLibrary) |
Is |
(Inherited from CommandSetLibrary) |
Is |
Returns whether or not there is only one selected item on the active document. (Inherited from CommandSetLibrary) |
Is |
Returns whether or not there is only one selected item on the active window. This could be a document or tool window. (Inherited from CommandSetLibrary) |
Process |
Implementation of the Copy command |
Process |
Implementation of the Cut command |
Process |
Implementation of the Paste command |
Process |
Virtual method to process the menu Copy operation |
Process |
Virtual method to process the menu Cut operation |
Process |
Virtual method to process the menu Paste operation |
Resolve |
Method to resolve shapes used for export as Bitmap/Emf file into Clipboard. Using the DataObject enables to bring a coherence between what was copied as model-elements, and what is copied as images (otherwise it might be that you select two shapes, but not the connector between them, and this one is copied as elements, but not as an image) |