Bewerken

Delen via


CompositeActivityDesigner.CanMoveActivities Method

Definition

Returns a value that indicates whether activities contained within the composite activity can be moved out of the composite activity associated with the designer.

public:
 virtual bool CanMoveActivities(System::Workflow::ComponentModel::Design::HitTestInfo ^ moveLocation, System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToMove);
public virtual bool CanMoveActivities (System.Workflow.ComponentModel.Design.HitTestInfo moveLocation, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToMove);
abstract member CanMoveActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
override this.CanMoveActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
Public Overridable Function CanMoveActivities (moveLocation As HitTestInfo, activitiesToMove As ReadOnlyCollection(Of Activity)) As Boolean

Parameters

moveLocation
HitTestInfo

The location from which to move the activities.

activitiesToMove
ReadOnlyCollection<Activity>

The read-only array of activities to move.

Returns

true if the activities can be moved from the composite activity; otherwise false.

Examples

The following example shows how to override the CanMoveActivities method to allow the moving of child activities within the CompositeActivityDesigner.

public override bool CanMoveActivities(HitTestInfo moveLocation, ReadOnlyCollection<Activity> activitiesToMove)
{
    return false;
}
Public Overrides Function CanMoveActivities(ByVal moveLocation As HitTestInfo, ByVal activitiesToMove As ReadOnlyCollection(Of Activity)) As Boolean
    Return False
End Function

Remarks

Use CanMoveActivities to determine if a list of activities can be moved from within a composite activity.

Applies to