Partager via


ClipboardCommandSet.ProcessOnStatusPasteCommand Method

Called to determine whether the Paste command should be enabled and visible on a menu. If you override this method, set cmd.Enabled and cmd.Visible.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable Sub ProcessOnStatusPasteCommand ( _
    cmd As MenuCommand _
)
protected virtual void ProcessOnStatusPasteCommand(
    MenuCommand cmd
)
protected:
virtual void ProcessOnStatusPasteCommand(
    MenuCommand^ cmd
)
abstract ProcessOnStatusPasteCommand : 
        cmd:MenuCommand -> unit  
override ProcessOnStatusPasteCommand : 
        cmd:MenuCommand -> unit
protected function ProcessOnStatusPasteCommand(
    cmd : MenuCommand
)

Parameters

Remarks

Called when the user right-clicks over the diagram. The default behavior is that it is visible when the current selection is an item in a compartment shape. To specify whether the command is visible and enabled on the menu, override this method and set the Visible and Enabled properties of the command parameter. You will normally want to use this.CurrentSelection to help you determine whether the menu command should appear.

.NET Framework Security

See Also

Reference

ClipboardCommandSet Class

Microsoft.VisualStudio.Modeling.Shell Namespace