ActivityDesignerVerb 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

使用关联的谓词组、文本和事件处理程序创建要与设计器一起使用的新谓词。Creates a new verb to be used with the designer using the associated verb group, text and event handler.

public ref class ActivityDesignerVerb : System::ComponentModel::Design::DesignerVerb
public class ActivityDesignerVerb : System.ComponentModel.Design.DesignerVerb
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesignerVerb : System.ComponentModel.Design.DesignerVerb
type ActivityDesignerVerb = class
    inherit DesignerVerb
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityDesignerVerb = class
    inherit DesignerVerb
Public Class ActivityDesignerVerb
Inherits DesignerVerb
继承
ActivityDesignerVerb
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

ActivityDesignerVerb 描述要对工作流组件采取的操作。The ActivityDesignerVerb describes an action to take against a workflow component. ActivityDesignerVerb 选项可在设计时显示在菜单栏和右键上下文菜单中。ActivityDesignerVerb options are displayed in the menu bar and right-click context menus during design time.

ActivityDesignerVerb 将在设计时和与同一个 DesignerVerbGroup 关联的其他谓词分组在一起并显示在相应子菜单中。The ActivityDesignerVerb will be grouped with other verbs associated with the same DesignerVerbGroup and are displayed in the corresponding sub-menu at design time.

从菜单中选择这个新谓词时,将调用创建此谓词时传递的事件处理程序。The event handler passed when creating a new verb will be invoked when this verb is chosen from the menu.

构造函数

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和一个 DesignerVerbGroup 初始化 EventHandler 的实例。Initializes an instance of an ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and an EventHandler.

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和两个 DesignerVerbGroup 对象(一个用于处理菜单选择事件,另一个用于处理状态更新)初始化 EventHandler 的实例。Initializes an instance of a ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and two EventHandler objects, one to handle menu selection events and the other to handle status updates.

属性

Checked

获取或设置一个值,用以指示是否选中此菜单项。Gets or sets a value indicating whether this menu item is checked.

(继承自 MenuCommand)
CommandID

获取 CommandID 的新 ActivityDesignerVerbGets a new CommandID for an ActivityDesignerVerb.

Description

获取或设置谓词菜单项的说明。Gets or sets the description of the menu item for the verb.

(继承自 DesignerVerb)
Enabled

获取一个值,该值指示此菜单项是否可用。Gets a value indicating whether this menu item is available.

(继承自 MenuCommand)
Group

获取与 DesignerVerbGroup 关联的 ActivityDesignerVerbGets the DesignerVerbGroup associated with the ActivityDesignerVerb.

OleStatus

获取一个描述 ActivityDesignerVerb 的状态的整数。Gets an integer that describes the status of the ActivityDesignerVerb.

Properties

获取与 MenuCommand 关联的公共属性。Gets the public properties associated with the MenuCommand.

(继承自 MenuCommand)
Supported

获取或设置一个值,用以指示是否支持此菜单项。Gets or sets a value indicating whether this menu item is supported.

(继承自 MenuCommand)
Text

获取菜单上的谓词命令的文本说明。Gets the text description for the verb command on the menu.

(继承自 DesignerVerb)
Visible

获取或设置一个值,用以指示此菜单项是否可见。Gets or sets a value indicating whether this menu item is visible.

(继承自 MenuCommand)

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Invoke()

调用该命令。Invokes the command.

(继承自 MenuCommand)
Invoke(Object)

使用给定参数调用命令。Invokes the command with the given parameter.

(继承自 MenuCommand)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnCommandChanged(EventArgs)

引发 CommandChanged 事件。Raises the CommandChanged event.

(继承自 MenuCommand)
ToString()

重写 ToString()Overrides ToString().

(继承自 DesignerVerb)

事件

CommandChanged

在菜单命令出现更改时发生。Occurs when the menu command changes.

(继承自 MenuCommand)

适用于