DesignerAction 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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
一個字串代表與設計者動作相關的文字。
例外狀況
activityDesigner 包含一個空參考(Nothing 在 Visual Basic 中)。
text 包含空參考(Nothing)或其長度為0。