ConnectorHitTestInfo Constructor

Definition

Initializes a new instance of the ConnectorHitTestInfo class.

public:
 ConnectorHitTestInfo(System::Workflow::ComponentModel::Design::CompositeActivityDesigner ^ compositeActivityDesigner, System::Workflow::ComponentModel::Design::HitTestLocations flags, int connector);
public ConnectorHitTestInfo (System.Workflow.ComponentModel.Design.CompositeActivityDesigner compositeActivityDesigner, System.Workflow.ComponentModel.Design.HitTestLocations flags, int connector);
new System.Workflow.ComponentModel.Design.ConnectorHitTestInfo : System.Workflow.ComponentModel.Design.CompositeActivityDesigner * System.Workflow.ComponentModel.Design.HitTestLocations * int -> System.Workflow.ComponentModel.Design.ConnectorHitTestInfo
Public Sub New (compositeActivityDesigner As CompositeActivityDesigner, flags As HitTestLocations, connector As Integer)

Parameters

compositeActivityDesigner
CompositeActivityDesigner

The CompositeActivityDesigner that contains the connector.

flags
HitTestLocations

A HitTestLocations that defines the location on the connector that the user clicked.

connector
Int32

The index identifier of the connector that was clicked.

Exceptions

Prior to the constructor call the connector index was set to less than zero.

Examples

The following example shows the addition of a new branch using a designer based off of the CompositeActivityDesigner class. If CanInsertActivities returns true, a new branch is created using the InsertActivities method. A ConnectorHitTestInfo object is created as a parameter to the InsertActivities method. When this is finished, the EnsureVisibleContainedDesigner method is used to ensure that the newly added branch is displayed in the workflow designer.

protected override CompositeActivity OnCreateNewBranch()
{
    return new ParallelIfBranch();
}
Protected Overrides Function OnCreateNewBranch() As CompositeActivity
    Return New ParallelIfBranch()
End Function

Applies to