Edit

Share via


DesignerAction Constructors

Definition

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.

image
Image

The Image to be 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