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.

Исключения

source или target содержит ссылку null (Nothing в Visual Basic).

Свойство AssociatedDesigner для source или target содержит ссылку null (Nothing).

Текущий FreeformActivityDesigner контейнер не является контейнером для добавляемого соединителя.

Комментарии

AddConnector вызывается при добавлении Connector пользователя в объект FreeformActivityDesigner.

Применяется к