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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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: System.Windows.Forms.DragDropEffectsAll possible effects that the drag/drop target can support.
Return Value
Type: System.Windows.Forms.DragDropEffects
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.