FreeformActivityDesigner.AddConnector 方法

定义

将连接器添加到 .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

参数

source
ConnectionPoint

ConnectionPoint开始绘制连接线的位置。

target
ConnectionPoint

ConnectionPoint完成绘制连接线的位置。

返回

添加到 Connector .FreeformActivityDesigner

例外

sourcetarget 包含 Visual Basic 中的 null 引用(Nothing)。

AssociatedDesigner sourcetarget包含null引用的属性(Nothing)。

当前 FreeformActivityDesigner 不是要添加的连接器的容器。

注解

当用户向 添加 a 时调用 />

适用于