Compartir a través de


CommandSet Class

Definition

Important

This API is not CLS-compliant.

Commands supported by this designer

public ref class CommandSet abstract : Microsoft::VisualStudio::Modeling::Shell::CommandSetLibrary
[System.CLSCompliant(false)]
public abstract class CommandSet : Microsoft.VisualStudio.Modeling.Shell.CommandSetLibrary
public abstract class CommandSet : Microsoft.VisualStudio.Modeling.Shell.CommandSetLibrary
[<System.CLSCompliant(false)>]
type CommandSet = class
    inherit CommandSetLibrary
type CommandSet = class
    inherit CommandSetLibrary
Public MustInherit Class CommandSet
Inherits CommandSetLibrary
Inheritance
Attributes

Constructors

CommandSet(IServiceProvider)

Creates a new CommandSet

Properties

CurrentDocData

Currently focused document

(Inherited from CommandSetLibrary)
CurrentDocumentSelection

Returns the collection of selected elements in the active document window.

(Inherited from CommandSetLibrary)
CurrentDocView

Currently focused document view

CurrentModelingDocView

Currently focused document view

(Inherited from CommandSetLibrary)
CurrentSelection

Returns the collection of selected elements in the active window. This could be a document window or tool window.

(Inherited from CommandSetLibrary)
MenuService

Menu command service used to manage command handlers.

(Inherited from CommandSetLibrary)
MonitorSelection

Service used to track selection in the Visual Studio shell.

(Inherited from CommandSetLibrary)
ServiceProvider

Service provider used to retrieve Visual Studio services.

(Inherited from CommandSetLibrary)
SingleDocumentSelection

Returns the primary selected object in the active document window.

(Inherited from CommandSetLibrary)
SingleSelection

Returns the primary selected object in active window. This could be a document window or tool window.

(Inherited from CommandSetLibrary)

Methods

CanDeleteSelectedItems()

Determine whether selected item can be deleted or not

(Inherited from CommandSetLibrary)
DeleteSelectedItems(String)

Protected method to delete selected items

(Inherited from CommandSetLibrary)
GetMenuCommands()

Provide the menu commands that this commandset implements

Initialize()

Initialize the command set

(Inherited from CommandSetLibrary)
InitializeAsync(CancellationToken) (Inherited from CommandSetLibrary)
IsAnyDocumentSelectionCompartment()

Returns whether any of the items in the selection list is a compartment.

(Inherited from CommandSetLibrary)
IsAnyDocumentSelectionMoveableHostShape()

Returns whether any of the items in the selection list is a moveable host shape, which cannot be deleted.

(Inherited from CommandSetLibrary)
IsAnyDocumentSelectionUndeletable()

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)
IsCurrentDiagramEmpty()

Returns true if diagram has no children.

(Inherited from CommandSetLibrary)
IsDiagramSelected() (Inherited from CommandSetLibrary)
IsExpandableShape()

Returns whether or not the single selection can expand or collapse.

IsSingleDocumentSelection()

Returns whether or not there is only one selected item on the active document.

(Inherited from CommandSetLibrary)
IsSingleSelection()

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)
ProcessOnMenuDeleteCommand()

Virtual method to process the menu Delete operation

ProcessOnMenuEditCompartmentItemCommand()

Virtual method to process the menu EditCompartmentItem operation

ProcessOnMenuExpandCollapseCommand()

Virtual method to process the menu ExpandCollapse operation

ProcessOnMenuPageSetupCommand()

Virtual method to process the menu PageSetup operation

ProcessOnMenuPrintCommand()

Virtual method to process the menu Print operation

ProcessOnMenuPrintPreviewCommand()

Virtual method to process the menu Print Preview operation

ProcessOnMenuRerouteLineCommand()

Virtual method to process the menu RerouteLine operation

ProcessOnMenuResetDecoratorLocationCommand()

Virtual method to process the menu ResetDecoratorLocation operation

ProcessOnMenuResetDecoratorSizeCommand()

Virtual method to process the menu ResetDecoratorSize operation

ProcessOnMenuSelectAllCommand()

Virtual method to process the menu SelectAll operation

ProcessOnStatusDeleteCommand(MenuCommand)

Virtual method for processing the Delete menu status handler.

ProcessOnStatusEditCompartmentItemCommand(MenuCommand)

Virtual method for processing the EditCompartmentItem menu status handler.

ProcessOnStatusExpandCollapseCommand(MenuCommand)

Virtual method for processing the ExpandCollapse menu status handler.

ProcessOnStatusPageSetupCommand(MenuCommand)

Virtual method for processing the PageSetup menu status handler.

ProcessOnStatusPrintCommand(MenuCommand)

Virtual method for processing the Print menu status handler.

ProcessOnStatusPrintPreviewCommand(MenuCommand)

Virtual method for processing the Print Preview menu status handler.

ProcessOnStatusRerouteLineCommand(MenuCommand)

Virtual method for processing the RerouteLine menu status handler.

ProcessOnStatusResetDecoratorLocationCommand(MenuCommand)

Virtual method for processing the ResetDecoratorLocation menu status handler.

ProcessOnStatusResetDecoratorSizeCommand(MenuCommand)

Virtual method for processing the ResetDecoratorSize menu status handler.

ProcessOnStatusSelectAllCommand(MenuCommand)

Virtual method for processing the SelectAll menu status handler.

Applies to