CanRemoveActivities Method

StructuredCompositeActivityDesigner.CanRemoveActivities Method (ReadOnlyCollection<Activity>)


Returns a value that indicates whether the specified activities can be removed from the StructuredCompositeActivityDesigner.

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

public override bool CanRemoveActivities(
	ReadOnlyCollection<Activity> activitiesToRemove


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

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

Return Value

Type: System.Boolean

true if the specified activities can be removed; otherwise, false.

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

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

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft