Share via


ConnectorHitTestInfo 생성자

정의

ConnectorHitTestInfo 클래스의 새 인스턴스를 초기화합니다.

public:
 ConnectorHitTestInfo(System::Workflow::ComponentModel::Design::CompositeActivityDesigner ^ compositeActivityDesigner, System::Workflow::ComponentModel::Design::HitTestLocations flags, int connector);
public ConnectorHitTestInfo (System.Workflow.ComponentModel.Design.CompositeActivityDesigner compositeActivityDesigner, System.Workflow.ComponentModel.Design.HitTestLocations flags, int connector);
new System.Workflow.ComponentModel.Design.ConnectorHitTestInfo : System.Workflow.ComponentModel.Design.CompositeActivityDesigner * System.Workflow.ComponentModel.Design.HitTestLocations * int -> System.Workflow.ComponentModel.Design.ConnectorHitTestInfo
Public Sub New (compositeActivityDesigner As CompositeActivityDesigner, flags As HitTestLocations, connector As Integer)

매개 변수

compositeActivityDesigner
CompositeActivityDesigner

커넥터를 포함하는 CompositeActivityDesigner입니다.

flags
HitTestLocations

사용자가 클릭한 커넥터의 위치를 정의하는 HitTestLocations입니다.

connector
Int32

클릭한 커넥터의 인덱스 식별자입니다.

예외

생성자 호출 이전에 커넥터 인덱스가 0보다 작은 값으로 설정된 경우

예제

다음 예제에서는 CompositeActivityDesigner 클래스에 기반을 둔 디자이너를 사용하여 새 분기를 추가하는 방법을 보여 줍니다. CanInsertActivitiestrue를 반환할 경우에는 새 분기는 InsertActivities 메서드를 사용하여 만들어집니다. ConnectorHitTestInfo 개체는 InsertActivities 메서드에 대한 매개 변수로 만들어집니다. 완료되면 EnsureVisibleContainedDesigner 메서드를 사용하여 새롭게 추가된 분기가 워크플로 디자이너에 표시되는지 확인합니다.

protected override CompositeActivity OnCreateNewBranch()
{
    return new ParallelIfBranch();
}
Protected Overrides Function OnCreateNewBranch() As CompositeActivity
    Return New ParallelIfBranch()
End Function

적용 대상