DiagramDragEventArgs.ComputeEffect Method

This method returns the single resultant drop effect given the possible effects that the drag/drop target can support. The drag source's allowed effects combined with the key states will be used to determine the resultant effect.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Function ComputeEffect ( _
    possibleTargetEffects As DragDropEffects _
) As DragDropEffects
public DragDropEffects ComputeEffect(
    DragDropEffects possibleTargetEffects
)
public:
DragDropEffects ComputeEffect(
    DragDropEffects possibleTargetEffects
)
member ComputeEffect : 
        possibleTargetEffects:DragDropEffects -> DragDropEffects
public function ComputeEffect(
    possibleTargetEffects : DragDropEffects
) : DragDropEffects

Parameters

  • possibleTargetEffects
    Type: DragDropEffects

    All possible effects that the drag/drop target can support.

Return Value

Type: DragDropEffects

.NET Framework Security

See Also

Reference

DiagramDragEventArgs Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace