語言

FreeformActivityDesigner.AddConnector 方法

定義

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

參數

source
ConnectionPoint

開始繪製連接件的位置 ConnectionPoint 。

target
ConnectionPoint

ConnectionPoint完成連接線繪製的位置。

傳回

Connector那個被加到.FreeformActivityDesigner

例外狀況

source 或 target 包含一個 null 參考(Visual Basic 中的 Nothing)。

AssociatedDesigner或 source 的target屬性包含一個null參考(Nothing)。

電流 FreeformActivityDesigner 不是連接器要加的容器。

備註

AddConnector 當使用者將 a Connector 加入 FreeformActivityDesigner時,會被呼叫。

適用於