ActivityDesignerVerb ActivityDesignerVerb ActivityDesignerVerb ActivityDesignerVerb Class

定義

警告

此 API 現已淘汰。

建立新的動詞,可以與使用關聯動詞群組、文字和事件處理常式的設計工具一同使用。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
[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
Public Class ActivityDesignerVerb
Inherits DesignerVerb
繼承
ActivityDesignerVerbActivityDesignerVerbActivityDesignerVerbActivityDesignerVerb
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。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.

建立新的動詞時傳送的事件處理常式,將在此動詞於功能表中選用時叫用 (Invoke)。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, String, EventHandler) ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler) ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler)

透過使用 ActivityDesignerVerbActivityDesigner 值、動詞的描述和 DesignerVerbGroupEventHandler來初始化 的執行個體。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, String, EventHandler, EventHandler) ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler, EventHandler) ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler, EventHandler)

透過使用 ActivityDesignerVerbActivityDesigner 值、動詞的描述和兩個 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 Checked Checked Checked

取得或設定值,表示是否檢查這個功能表項目。Gets or sets a value indicating whether this menu item is checked.

(Inherited from MenuCommand)
CommandID CommandID CommandID CommandID

CommandIDActivityDesignerVerb取得新的 。Gets a new CommandID for an ActivityDesignerVerb.

Description Description Description Description

取得或設定動詞命令的功能表項目描述。Gets or sets the description of the menu item for the verb.

(Inherited from DesignerVerb)
Enabled Enabled Enabled Enabled

取得值,表示是否可以使用這個功能表項目。Gets a value indicating whether this menu item is available.

(Inherited from MenuCommand)
Group Group Group Group

取得與 DesignerVerbGroup 相關聯的 ActivityDesignerVerbGets the DesignerVerbGroup associated with the ActivityDesignerVerb.

OleStatus OleStatus OleStatus OleStatus

取得描述 ActivityDesignerVerb 狀態的整數。Gets an integer that describes the status of the ActivityDesignerVerb.

Properties Properties Properties Properties

取得與 MenuCommand 關聯的公用屬性。Gets the public properties associated with the MenuCommand.

(Inherited from MenuCommand)
Supported Supported Supported Supported

取得或設定值,表示是否支援這個功能表項目。Gets or sets a value indicating whether this menu item is supported.

(Inherited from MenuCommand)
Text Text Text Text

取得功能表上動詞命令的文字描述。Gets the text description for the verb command on the menu.

(Inherited from DesignerVerb)
Visible Visible Visible Visible

取得或設定值,表示功能表項目是否為可見。Gets or sets a value indicating whether this menu item is visible.

(Inherited from MenuCommand)

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Invoke() Invoke() Invoke() Invoke()

叫用命令。Invokes the command.

(Inherited from MenuCommand)
Invoke(Object) Invoke(Object) Invoke(Object) Invoke(Object)

叫用具有指定參數的命令。Invokes the command with the given parameter.

(Inherited from MenuCommand)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnCommandChanged(EventArgs) OnCommandChanged(EventArgs) OnCommandChanged(EventArgs) OnCommandChanged(EventArgs)

引發 CommandChanged 事件。Raises the CommandChanged event.

(Inherited from MenuCommand)
ToString() ToString() ToString() ToString()

覆寫 ToString()Overrides ToString().

(Inherited from DesignerVerb)

事件

CommandChanged CommandChanged CommandChanged CommandChanged

發生於功能表命令變更時。Occurs when the menu command changes.

(Inherited from MenuCommand)

適用於