Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the commands that are available in the shortcut menu for the generated designer of a domain-specific language.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public MustInherit Class CommandSet _
Inherits MarshalByRefObject
'Usage
Dim instance As CommandSet
[CLSCompliantAttribute(false)]
public abstract class CommandSet : MarshalByRefObject
[CLSCompliantAttribute(false)]
public ref class CommandSet abstract : public MarshalByRefObject
public abstract class CommandSet extends MarshalByRefObject
Remarks
Commands appear to a user in the shortcut menu, which is available in the generated designer. The following table contains the default commands in the shortcut menu.
Command |
Description |
---|---|
Select All |
Select all shapes. |
Reroute Line |
Restore the default position of the selected connector. |
Delete |
Delete the selected shape. |
Expand/Collapse |
Expand a shape to show its properties, or collapse a shape to hide its properties. |
Add Compartment Item |
Add an item to a compartment in a shape. |
Add Swimlane Before |
Add a swimlane before the selected diagram. The swimlane appears to the left of or above the diagram. |
Add Swimlane After |
Add a swimlane after the selected diagram. The swimlane appears to the right of or under the diagram. |
Add DynamicName |
Add a custom component to the diagram. |
Note
You can define additional commands in the Commands.vsct file.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.VisualStudio.Modeling.Shell.CommandSet
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.