共用方式為


DragGestureData.Effects 屬性

取得或設定目前的拖放效果。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Property Effects As DragDropEffects
    Get
    Set
public DragDropEffects Effects { get; set; }
public:
property DragDropEffects Effects {
    DragDropEffects get ();
    void set (DragDropEffects value);
}
member Effects : DragDropEffects with get, set
function get Effects () : DragDropEffects
function set Effects (value : DragDropEffects)

屬性值

型別:System.Windows.DragDropEffects
DragDropEffects 物件,表示目前的拖放效果。

例外狀況

例外狀況 條件
ArgumentException

不在允許的效果中的效果。

備註

這個屬性的值會複製回拖放作業的 DragEventArgs

.NET Framework 安全性

請參閱

參考

DragGestureData 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

了解 WPF 設計工具擴充性