FreeformActivityDesigner.AddConnector Metod

Definition

Lägger till en anslutningsapp till FreeformActivityDesigner.

public:
 System::Workflow::ComponentModel::Design::Connector ^ AddConnector(System::Workflow::ComponentModel::Design::ConnectionPoint ^ source, System::Workflow::ComponentModel::Design::ConnectionPoint ^ target);
public System.Workflow.ComponentModel.Design.Connector AddConnector(System.Workflow.ComponentModel.Design.ConnectionPoint source, System.Workflow.ComponentModel.Design.ConnectionPoint target);
member this.AddConnector : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> System.Workflow.ComponentModel.Design.Connector
Public Function AddConnector (source As ConnectionPoint, target As ConnectionPoint) As Connector

Parametrar

source
ConnectionPoint

Platsen ConnectionPoint där anslutningsappen ska börja ritas.

target
ConnectionPoint

Platsen ConnectionPoint för att slutföra ritningen av anslutningsappen.

Returer

Det Connector som lades till i FreeformActivityDesigner.

Undantag

source eller target innehåller en null referens (Nothing i Visual Basic).

Egenskapen AssociatedDesigner för source eller target innehåller en null referens (Nothing).

Den aktuella FreeformActivityDesigner är inte containern som anslutningsappen ska lägga till.

Kommentarer

AddConnector anropas när en användare lägger till en Connector i FreeformActivityDesigner.

Gäller för