StructuredCompositeActivityDesigner.CanInsertActivities 方法

定义

返回一个值,该值指示是否可以将指定的活动添加到 StructuredCompositeActivityDesigner 工作流设计图面上的指定位置。

public:
 override bool CanInsertActivities(System::Workflow::ComponentModel::Design::HitTestInfo ^ insertLocation, System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToInsert);
public override bool CanInsertActivities(System.Workflow.ComponentModel.Design.HitTestInfo insertLocation, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToInsert);
override this.CanInsertActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
Public Overrides Function CanInsertActivities (insertLocation As HitTestInfo, activitiesToInsert As ReadOnlyCollection(Of Activity)) As Boolean

参数

insertLocation
HitTestInfo

HitTestInfo包含尝试插入活动的屏幕位置的屏幕位置。

activitiesToInsert
ReadOnlyCollection<Activity>

Activity包含要添加的活动的只读集合。

返回

true 如果指定活动可以在工作流设计图面上的指定位置插入,则为 ;否则,为 false.

适用于