FreeformActivityDesigner.AddConnector Metodo

Definizione

Aggiunge un connettore all'oggetto 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

Parametri

source
ConnectionPoint

Posizione ConnectionPoint in cui iniziare a disegnare il connettore.

target
ConnectionPoint

Posizione ConnectionPoint in cui completare il disegno del connettore.

Valori restituiti

Oggetto Connector aggiunto all'oggetto FreeformActivityDesigner.

Eccezioni

source o target contiene un riferimento null (Nothing in Visual Basic).

La AssociatedDesigner proprietà per source o target contiene un null riferimento (Nothing).

L'oggetto corrente FreeformActivityDesigner non è il contenitore da aggiungere al connettore.

Commenti

AddConnector viene chiamato quando un utente aggiunge un Connector oggetto all'oggetto FreeformActivityDesigner.

Si applica a