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

 

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

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

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

Parameters

moveLocation
Type: System.Workflow.ComponentModel.Design.HitTestInfo

The location from which to move the activities.

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

The read-only array of activities to move.

Return Value

Type: System.Boolean

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

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

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;
}

.NET Framework
Available since 3.0
Return to top
Show: