DesignerAction 构造函数

定义

初始化 DesignerAction 类的新实例。

重载

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 包含空引用(在 Visual Basic 中为 Nothing)。

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 包含空引用(在 Visual Basic 中为 Nothing)。

text 包含空引用 (Nothing) 或其长度为 0。

适用于