CompositeActivityDesigner.CanMoveActivities(HitTestInfo, ReadOnlyCollection<Activity>) Método

Definición

Devuelve un valor que indica si las actividades contenidas dentro de la actividad compuesta se pueden mover fuera de la actividad compuesta asociada al diseñador.Returns a value that indicates whether activities contained within the composite activity can be moved out of the composite activity associated with the designer.

public:
 virtual bool CanMoveActivities(System::Workflow::ComponentModel::Design::HitTestInfo ^ moveLocation, System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::ComponentModel::Activity ^> ^ activitiesToMove);
public virtual bool CanMoveActivities (System.Workflow.ComponentModel.Design.HitTestInfo moveLocation, System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> activitiesToMove);
abstract member CanMoveActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
override this.CanMoveActivities : System.Workflow.ComponentModel.Design.HitTestInfo * System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.ComponentModel.Activity> -> bool
Public Overridable Function CanMoveActivities (moveLocation As HitTestInfo, activitiesToMove As ReadOnlyCollection(Of Activity)) As Boolean

Parámetros

moveLocation
HitTestInfo

Ubicación desde la que mover las actividades.The location from which to move the activities.

activitiesToMove
ReadOnlyCollection<Activity>

La matriz de solo lectura de actividades para mover.The read-only array of activities to move.

Devoluciones

true si las actividades se pueden mover de la actividad compuesta; de lo contrario false.true if the activities can be moved from the composite activity; otherwise false.

Ejemplos

El ejemplo siguiente muestra cómo invalidar el método CanMoveActivities para permitir mover actividades secundarias dentro de CompositeActivityDesigner.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;
}
Public Overrides Function CanMoveActivities(ByVal moveLocation As HitTestInfo, ByVal activitiesToMove As ReadOnlyCollection(Of Activity)) As Boolean
    Return False
End Function

Comentarios

Utilice CanMoveActivities para determinar si una lista de actividades se puede mover desde dentro de una actividad compuesta.Use CanMoveActivities to determine if a list of activities can be moved from within a composite activity.

Se aplica a