共用方式為


DragGestureData.FromEventArgs 方法 (ExecutedToolEventArgs)

提供簡單的公用程式,這個公用程式會從 ExecutedToolEventArgs 物件傳回 DragGestureData

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

語法

'宣告
Public Shared Function FromEventArgs ( _
    e As ExecutedToolEventArgs _
) As DragGestureData
public static DragGestureData FromEventArgs(
    ExecutedToolEventArgs e
)
public:
static DragGestureData^ FromEventArgs(
    ExecutedToolEventArgs^ e
)
static member FromEventArgs : 
        e:ExecutedToolEventArgs -> DragGestureData 
public static function FromEventArgs(
    e : ExecutedToolEventArgs
) : DragGestureData

參數

傳回值

型別:Microsoft.Windows.Design.Interaction.DragGestureData
ExecutedToolEventArgs 物件的 Parameter 屬性所包含的 DragGestureData 物件。

例外狀況

例外狀況 條件
ArgumentNullException

e 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

備註

大多數命令都是以 ExecuteEventHandler 回呼的方式實作的。 這些回呼具備名稱為 "data" 的單一屬性,代表命令的資料。 當有筆勢叫用 (Invoke) 這個命令時,會以 DragGestureData 物件的形式傳回這個資料。

.NET Framework 安全性

請參閱

參考

DragGestureData 類別

FromEventArgs 多載

Microsoft.Windows.Design.Interaction 命名空間

其他資源

了解 WPF 設計工具擴充性