CompositeActivityDesigner.CanRemoveActivities Method (ReadOnlyCollection<Activity>)

 

Returns a value that indicates if activities can be removed from the composite activity associated with the designer.

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

public virtual bool CanRemoveActivities(
	ReadOnlyCollection<Activity> activitiesToRemove
)

Parameters

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

A read-only array of activities to remove from the composite activity associated with the designer.

Return Value

Type: System.Boolean

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

Use CanRemoveActivities to determine if a list of contained activities can be removed from the composite activity.

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

public override bool CanRemoveActivities(ReadOnlyCollection<Activity> activitiesToRemove)
{
    return true;
}

.NET Framework
Available since 3.0
Return to top
Show: