DesignerAction 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 包含 null 引用(Visual Basic 中的 Nothing)。
text 包含 null 引用 (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
一个字符串,表示与设计器操作关联的文本。
例外
activityDesigner 包含 null 引用(Visual Basic 中的 Nothing)。
text 包含 null 引用 (Nothing) 或其长度为 0。