ParallelActivityDesigner.CanMoveActivities Method (HitTestInfo, ReadOnlyCollection<Activity>)


Returns a value that indicates whether child activities of the activity associated with the ParallelActivityDesigner can be moved.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public override bool CanMoveActivities(
	HitTestInfo moveLocation,
	ReadOnlyCollection<Activity> activitiesToMove


Type: System.Workflow.ComponentModel.Design.HitTestInfo

The HitTestInfo that describes the location to move the activities to.

Type: System.Collections.ObjectModel.ReadOnlyCollection<Activity>

The Activity read-only collection that contains the activities to move.

Return Value

Type: System.Boolean

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

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

public override bool CanMoveActivities(HitTestInfo moveLocation, ReadOnlyCollection<Activity> activitiesToMove)
    return false;

.NET Framework
Available since 3.0
Return to top