DiagramDragEventArgs.ComputeEffect(DragDropEffects) 方法

定义

此方法根据拖放目标可以支持的可能效果,返回单个结果丢弃效果。 拖动源的允许效果与键状态组合将用于确定结果效果。

public:
 System::Windows::Forms::DragDropEffects ComputeEffect(System::Windows::Forms::DragDropEffects possibleTargetEffects);
public System.Windows.Forms.DragDropEffects ComputeEffect (System.Windows.Forms.DragDropEffects possibleTargetEffects);
member this.ComputeEffect : System.Windows.Forms.DragDropEffects -> System.Windows.Forms.DragDropEffects
Public Function ComputeEffect (possibleTargetEffects As DragDropEffects) As DragDropEffects

参数

possibleTargetEffects
DragDropEffects

拖放目标可以支持的所有可能效果。

返回

DragDropEffects

单个结果效果。

适用于