DesignerAction 建構函式

定義

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

多載

名稱 Description
DesignerAction(ActivityDesigner, Int32, String)

透過使用 DesignerAction、整數和字串來初始化該類別的新ActivityDesigner實例。

DesignerAction(ActivityDesigner, Int32, String, Image)

透過使用DesignerAction整數、字串和 ActivityDesigner來初始化類別的新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 包含一個空參考(Nothing 在 Visual Basic 中)。

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

適用於

DesignerAction(ActivityDesigner, Int32, String, Image)

透過使用DesignerAction整數、字串和 ActivityDesigner來初始化類別的新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 包含一個空參考(Nothing 在 Visual Basic 中)。

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

適用於