DesignerAction 建構函式

定義

初始化 DesignerAction 類別的新執行個體。

多載

DesignerAction(ActivityDesigner, Int32, String)

使用 DesignerAction、整數和字串來初始化 ActivityDesigner 類別的新執行個體。

DesignerAction(ActivityDesigner, Int32, String, Image)

使用 、整數、字串和 來初始化 類別的新執行個體。

DesignerAction(ActivityDesigner, Int32, String)

使用 DesignerAction、整數和字串來初始化 ActivityDesigner 類別的新執行個體。

public:
 DesignerAction(System::Workflow::ComponentModel::Design::ActivityDesigner ^ activityDesigner, int actionId, System::String ^ text);
public DesignerAction (System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, int actionId, string text);
new System.Workflow.ComponentModel.Design.DesignerAction : System.Workflow.ComponentModel.Design.ActivityDesigner * int * string -> System.Workflow.ComponentModel.Design.DesignerAction
Public Sub New (activityDesigner As ActivityDesigner, actionId As Integer, text As String)

參數

activityDesigner
ActivityDesigner

設計工具動作發生所在的 ActivityDesigner

actionId
Int32

表示 DesignerAction 識別項的整數值。

text
String

字串,表示和設計工具動作關聯的文字。

例外狀況

activityDesigner 包含 null 參考 (在 Visual Basic 中為 Nothing)。

text 包含 null 參考 (Nothing) 或長度為 0。

適用於

DesignerAction(ActivityDesigner, Int32, String, Image)

使用 、整數、字串和 來初始化 類別的新執行個體。

public:
 DesignerAction(System::Workflow::ComponentModel::Design::ActivityDesigner ^ activityDesigner, int actionId, System::String ^ text, System::Drawing::Image ^ image);
public DesignerAction (System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, int actionId, string text, System.Drawing.Image image);
new System.Workflow.ComponentModel.Design.DesignerAction : System.Workflow.ComponentModel.Design.ActivityDesigner * int * string * System.Drawing.Image -> System.Workflow.ComponentModel.Design.DesignerAction
Public Sub New (activityDesigner As ActivityDesigner, actionId As Integer, text As String, image As Image)

參數

activityDesigner
ActivityDesigner

設計工具動作要出現的所在 ActivityDesigner

actionId
Int32

表示 DesignerAction 識別項的整數值。

text
String

字串,表示和設計工具動作關聯的文字。

image
Image

要與設計工具動作關聯的 Image

例外狀況

activityDesigner 包含 null 參考 (在 Visual Basic 中為 Nothing)。

text 包含 null 參考 (Nothing) 或長度為 0。

適用於