CommandSet 类

定义

重要

此 API 不符合 CLS。

此设计器支持的命令

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

构造函数

CommandSet(IServiceProvider)

创建新的 CommandSet

属性

CurrentDocData

当前焦点文档

(继承自 CommandSetLibrary)
CurrentDocumentSelection

返回活动文档窗口中选定元素的集合。

(继承自 CommandSetLibrary)
CurrentDocView

当前聚焦的文档视图

CurrentModelingDocView

当前聚焦的文档视图

(继承自 CommandSetLibrary)
CurrentSelection

返回活动窗口中选定元素的集合。 这可能是文档窗口或工具窗口。

(继承自 CommandSetLibrary)
MenuService

用于管理命令处理程序的菜单命令服务。

(继承自 CommandSetLibrary)
MonitorSelection

用于跟踪 Visual Studio shell 中的选定内容的服务。

(继承自 CommandSetLibrary)
ServiceProvider

用于检索 Visual Studio 服务的服务提供程序。

(继承自 CommandSetLibrary)
SingleDocumentSelection

返回活动文档窗口中选定的主对象。

(继承自 CommandSetLibrary)
SingleSelection

返回活动窗口中主选定的对象。 这可能是文档窗口或工具窗口。

(继承自 CommandSetLibrary)

方法

CanDeleteSelectedItems()

确定是否可以删除选定项

(继承自 CommandSetLibrary)
DeleteSelectedItems(String)

用于删除选定项的受保护方法

(继承自 CommandSetLibrary)
GetMenuCommands()

提供此 commandset 实现的菜单命令

Initialize()

初始化命令集

(继承自 CommandSetLibrary)
InitializeAsync(CancellationToken) (继承自 CommandSetLibrary)
IsAnyDocumentSelectionCompartment()

返回选择列表中的任何项是否为隔离舱。

(继承自 CommandSetLibrary)
IsAnyDocumentSelectionMoveableHostShape()

返回选择列表中的任何项是否是可移动主机形状,不能将其删除。

(继承自 CommandSetLibrary)
IsAnyDocumentSelectionUndeletable()

返回是否无法删除选择列表中的任何形状项。 基本实现检查分段和 MoveableHostShape 形状。

(继承自 CommandSetLibrary)
IsCurrentDiagramEmpty()

如果关系图没有任何子级,则返回 true。

(继承自 CommandSetLibrary)
IsDiagramSelected() (继承自 CommandSetLibrary)
IsExpandableShape()

返回某个选定内容是否可以展开或折叠。

IsSingleDocumentSelection()

返回活动文档中是否只有一个选定项。

(继承自 CommandSetLibrary)
IsSingleSelection()

返回活动窗口中是否只有一个选定项。 这可能是文档或工具窗口。

(继承自 CommandSetLibrary)
ProcessOnMenuDeleteCommand()

用于处理菜单删除操作的虚方法

ProcessOnMenuEditCompartmentItemCommand()

用于处理 menu EditCompartmentItem 操作的虚方法

ProcessOnMenuExpandCollapseCommand()

用于处理 menu ExpandCollapse 操作的虚方法

ProcessOnMenuPageSetupCommand()

用于处理 menu PageSetup 操作的虚方法

ProcessOnMenuPrintCommand()

用于处理菜单打印操作的虚方法

ProcessOnMenuPrintPreviewCommand()

用于处理菜单打印预览操作的虚方法

ProcessOnMenuRerouteLineCommand()

用于处理 menu RerouteLine 操作的虚方法

ProcessOnMenuResetDecoratorLocationCommand()

用于处理 menu ResetDecoratorLocation 操作的虚方法

ProcessOnMenuResetDecoratorSizeCommand()

用于处理 menu ResetDecoratorSize 操作的虚方法

ProcessOnMenuSelectAllCommand()

用于处理 menu SelectAll 操作的虚方法

ProcessOnStatusDeleteCommand(MenuCommand)

用于处理删除菜单状态处理程序的虚拟方法。

ProcessOnStatusEditCompartmentItemCommand(MenuCommand)

用于处理 EditCompartmentItem 菜单状态处理程序的虚拟方法。

ProcessOnStatusExpandCollapseCommand(MenuCommand)

用于处理 ExpandCollapse 菜单状态处理程序的虚拟方法。

ProcessOnStatusPageSetupCommand(MenuCommand)

用于处理 PageSetup 菜单状态处理程序的虚拟方法。

ProcessOnStatusPrintCommand(MenuCommand)

用于处理打印菜单状态处理程序的虚拟方法。

ProcessOnStatusPrintPreviewCommand(MenuCommand)

用于处理打印预览菜单状态处理程序的虚拟方法。

ProcessOnStatusRerouteLineCommand(MenuCommand)

用于处理 RerouteLine 菜单状态处理程序的虚拟方法。

ProcessOnStatusResetDecoratorLocationCommand(MenuCommand)

用于处理 ResetDecoratorLocation 菜单状态处理程序的虚拟方法。

ProcessOnStatusResetDecoratorSizeCommand(MenuCommand)

用于处理 ResetDecoratorSize 菜单状态处理程序的虚拟方法。

ProcessOnStatusSelectAllCommand(MenuCommand)

用于处理 SelectAll 菜单状态处理程序的虚拟方法。

适用于