CommandSet Class
Domain-Specific Language Tools Reference
CommandSet Class

Updated: November 2007

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)

Visual Basic (Declaration)
<CLSCompliantAttribute(False)> _
Public MustInherit Class CommandSet _
    Inherits MarshalByRefObject
Visual Basic (Usage)
Dim instance As CommandSet
C#
[CLSCompliantAttribute(false)]
public abstract class CommandSet : MarshalByRefObject
Visual C++
[CLSCompliantAttribute(false)]
public ref class CommandSet abstract : public MarshalByRefObject
JScript
public abstract class CommandSet extends MarshalByRefObject

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.

System..::.Object
  System..::.MarshalByRefObject
    Microsoft.VisualStudio.Modeling.Shell..::.CommandSet
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker