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.

C#
public virtual bool CanMoveActivities(System.Workflow.ComponentModel.Design.HitTestInfo moveLocation, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToMove);

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.

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

Remarks

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

Applies to

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1