FreeformActivityDesigner.AddConnector 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将连接器添加到 .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
例外
source 或 target 包含 Visual Basic 中的 null 引用(Nothing)。
AssociatedDesigner
source或target包含null引用的属性(Nothing)。
当前 FreeformActivityDesigner 不是要添加的连接器的容器。