DesignerAction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DesignerAction class.
Overloads
DesignerAction(ActivityDesigner, Int32, String) |
Initializes a new instance of the DesignerAction class by using an ActivityDesigner, an integer, and a string. |
DesignerAction(ActivityDesigner, Int32, String, Image) |
Initializes a new instance of the DesignerAction class by using ActivityDesigner, an integer, a string, and an Image. |
DesignerAction(ActivityDesigner, Int32, String)
Initializes a new instance of the DesignerAction class by using an ActivityDesigner, an integer, and a string.
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)
Parameters
- activityDesigner
- ActivityDesigner
The ActivityDesigner on which the designer action is taken.
- actionId
- Int32
An integer value that represents the identifier of the DesignerAction.
- text
- String
A string that represents the text associated with the designer action.
Exceptions
activityDesigner
contains a null reference (Nothing
in Visual Basic).
text
contains a null reference (Nothing
) or its length is 0.
Applies to
DesignerAction(ActivityDesigner, Int32, String, Image)
Initializes a new instance of the DesignerAction class by using ActivityDesigner, an integer, a string, and an 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)
Parameters
- activityDesigner
- ActivityDesigner
The ActivityDesigner on which the designer action is to appear.
- actionId
- Int32
An integer value that represents the identifier of the DesignerAction.
- text
- String
A string that represents the text associated with the designer action.
Exceptions
activityDesigner
contains a null reference (Nothing
in Visual Basic).
text
contains a null reference (Nothing
) or its length is 0.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈